Skip to content
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

EPERM dir or file error #16

Open
weihsu932 opened this issue Jun 24, 2019 · 2 comments
Open

EPERM dir or file error #16

weihsu932 opened this issue Jun 24, 2019 · 2 comments

Comments

@weihsu932
Copy link

weihsu932 commented Jun 24, 2019

When the path is D:\ or C:\ on Windows, had the error which operation not permitted.
Maybe should to have options for ignore the error and keep to walking directory.

{ Error: EPERM: operation not permitted, stat 'D:\\System Volume Information'
    at Object.statSync (fs.js:850:3)
    at Object.statSync (D:\...\node_modules\graceful-fs\polyfills.js:295:24)
    at klawSync (D:\...\node_modules\klaw-sync\klaw-sync.js:16:24)
....
}
@manidlou
Copy link
Owner

the error originally comes from graceful-fs. idk how consistent the error is but maybe the user doesn't have permissions for the operation!

@manidlou
Copy link
Owner

manidlou commented Aug 26, 2019

anyhow maybe that'b be better to direct the suggestion to the graceful-fs repo to provide that! because I suppose if that's the case a lot of users will experience that and that'd be better that would be handled by the fs library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants