0

I'm trying to block the access to read, write and delete a file for all users in both Ubuntu and Windows with Node.js. In Ubuntu, I can do it with fs.chmodSync(file, 0000), but it doesn't work on Windows. Could someone recommend me a easy way to achieve it in both platforms?

Thanks in advance!

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.