We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chmodrKidSync
Hi there,
I think I found a bug of the function
`const chmodrKidSync = (p, child, mode) => { if (typeof child === 'string') { const stats = fs.lstatSync(path.resolve(p, child)) stats.name = child child = stats }
if (child.isDirectory()) { chmodrSync(path.resolve(p, child.name), mode) fs.chmodSync(path.resolve(p, child.name), dirMode(mode)) } else { fs[LCHMODSYNC](path.resolve(p, child.name), mode) } }`
where the fs.chmodSync is calling after the chmodrSync, which might cause permission denied issue if the folder is read-only.
fs.chmodSync
chmodrSync
I changed the order of these two functions and the issue is fixed for me.
Please correct me if I am wrong or miss something. Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi there,
I think I found a bug of the function
`const chmodrKidSync = (p, child, mode) => {
if (typeof child === 'string') {
const stats = fs.lstatSync(path.resolve(p, child))
stats.name = child
child = stats
}
if (child.isDirectory()) {
chmodrSync(path.resolve(p, child.name), mode)
fs.chmodSync(path.resolve(p, child.name), dirMode(mode))
} else { fs[LCHMODSYNC](path.resolve(p, child.name), mode) }
}`
where the
fs.chmodSync
is calling after thechmodrSync
, which might cause permission denied issue if the folder is read-only.I changed the order of these two functions and the issue is fixed for me.
Please correct me if I am wrong or miss something.
Thank you.
The text was updated successfully, but these errors were encountered: