Block read/write/delete file in Ubuntu and Windows with Node.js

18 views
Skip to first unread message

Alejandro Sánchez Gómez

unread,
Apr 10, 2016, 5:03:10 PM4/10/16
to nodejs

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!

Reply all
Reply to author
Forward
0 new messages