Because of umask, calling `ensureDir/ensureDirSync` without `fs.chmodSync`, the actual mode is not the same as the intended mode. I think it is better to mention this in https://github.com/jprichardson/node-fs-extra/blob/master/docs/ensureDir.md especially for someone who is not familiar with umask. Besides, I feel it is unnecessary to call this in mkdirs.js because node will take care of that. ``` if (mode === undefined) { mode = o777 & (~process.umask()) } ``` Refer to 1. https://github.com/nodejs/node/issues/15092 2. https://stackoverflow.com/questions/30815154/fs-mkdir-is-creating-the-directory-with-different-permissions-than-those-speci