New issue
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
hidefile file not found error with folder in Windows #3
Comments
I now cloned the repo and runned the test script..
|
Does it still happen with v3.0.0? If so, what Node.js version? |
I encountered this same issue today. MacOS works fine, but Windows throws the following error on a call to hidefile: v3.0.0 Uncaught (in promise) TypeError:
Cannot read property 'getAttributesSync' of undefined
at Object.getSync (index.js:37)
at index.js:22
at Object.run (whichLib.js:75)
at Object.getSync (index.js:22)
at statSync (index.js:131)
at shouldBeHiddenSync (index.js:269) Attempted to use (Side note: I created a typings file ( |
At the moment seems hideSync() works properly on windows 10 (version 20H2) (hidefile v 3.0.0) for a directory like "D:/data/.trashcan". |
@crystalfp Does |
Yes @nelsonni, it works on D:/xxx |
I'm getting a list of filesystem files and folder, and wont list hidden files/directory.
I'm exploring the filesystem by
var files = fs.readdirSync(testFolder);
and for every entry in this folder IWith files is ok but with folders i got this error:
With Mac and Linux this library works fine, but under windows it crash, I also tryed to remove and reinstall the module with no luck.
The text was updated successfully, but these errors were encountered: