You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
var fs = require('fs');
var s = fs.lstatSync('.');
console.log(s.mode);
On Windows, when I save this to a file in a directory in which my current user has full permissions (right-click on the directory -> Properties -> Security -> my username has checkboxes Full Control, Modify, Read & execute, List folder contents, Read and Write), and run it with node.js, I get a return value of 16822, which corresponds to "rw-rw-rw". On linux, if I do the same on a directory that has full 0777 chmod, I get 16895, which is "rwxrwxrwx" as expected.
Shouldn't lstatSync (and its variants) Windows give execute bit on the directory that the current user has full permissions in as well? Or does it have some other special reserved meaning on Windows?
The text was updated successfully, but these errors were encountered:
Consider the following code:
On Windows, when I save this to a file in a directory in which my current user has full permissions (right-click on the directory -> Properties -> Security -> my username has checkboxes Full Control, Modify, Read & execute, List folder contents, Read and Write), and run it with node.js, I get a return value of 16822, which corresponds to "rw-rw-rw". On linux, if I do the same on a directory that has full 0777 chmod, I get 16895, which is "rwxrwxrwx" as expected.
Shouldn't lstatSync (and its variants) Windows give execute bit on the directory that the current user has full permissions in as well? Or does it have some other special reserved meaning on Windows?
The text was updated successfully, but these errors were encountered: