ryanmcgrath / wrench-js

Recursive file operations in Node.js
MIT License
435 stars 71 forks source link

grant permissions recursively to folders on creations or chmod method fails #95

Open lastboy opened 9 years ago

lastboy commented 9 years ago

I tried to grant permissions on folders creation and it don't really do the job right. I saw couple of open issues about that, it would be appreciated if you will solve that since I ended creating my own utility.

FYI, looping over path array and using fs.chmodSync(path, 0777) is working. I looked at your code and something is not working on that recursion... you might want to drop the try catch and use standard loop..

mandarinx commented 9 years ago

Same here. I use wrench.mkdirSyncRecursive(dir, 0777); and the permissions are not correct.