jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.44k stars 776 forks source link

Problem to set permission with ensureDirSync(dest,options) #917

Closed jaiminpatel008 closed 3 years ago

jaiminpatel008 commented 3 years ago

const options = { mode : 0o7777 } let isDirectory = fs.ensureDirSync(dest, options);

const desiredMode = 0o7777; let isDirectory = fs.ensureDirSync(dest, desiredMode);

Above both options is not working.

RyanZim commented 3 years ago

You have an extra 7 there; I presume you meant 0o777?