In all my search attempts, I could only find people trying to fix an "EBUSY: resource busy or locked" error.
What I want is to intentionally put a file in this state (temporarily). How can this be done?
I tried using fs.open, fs.createReadStream and fs.createWriteStream from NodeJS, but for my surprise this doesn't make the file busy.
How can I do this? Preferably in NodeJS, but it can be in any language.