- Version: v8.11.2
- Platform: Win10 64-bit
- Subsystem:
If you are calling fs.stat or fs.statSync on an item where you don't have permissions to read the error or respective the exception is of the EPERM / EBUSY type. But this shouldn't be occur on reading the stats of a file or folder it should occur when you try to read the content of the file/folder but not when reading the stats.
Because when you use the Explorer or an other file manager you are able to see the files/folders and their information - you can't enter or open - but you can see the information about it.
This should be supported by node.js as well.
If you are calling fs.stat or fs.statSync on an item where you don't have permissions to read the error or respective the exception is of the EPERM / EBUSY type. But this shouldn't be occur on reading the stats of a file or folder it should occur when you try to read the content of the file/folder but not when reading the stats.
Because when you use the Explorer or an other file manager you are able to see the files/folders and their information - you can't enter or open - but you can see the information about it.
This should be supported by node.js as well.