🐛 Bug: File permissions in blockPrettier don't match what fs.stat reads #1875
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: bug
Something isn't working :(
Bug Report Checklist
main
branch of the repository.Expected
blockPrettier
should create files with a chmod mode that stays the same afterfs.stat
reads them.Actual
Running
fs.statSync(".husky/pre-commit").mode
givesmode: 33279
. Converting that.toString(16)
gives81ff
..toString(8)
gives100777
. Which visually matches the777
I'm trying to write them as.🤷
Additional Info
I don't want to dive deep into file permissions bits/integers now. So I'll just go with it.
Prototyped in #1839.
💖
The text was updated successfully, but these errors were encountered: