node-klaw-sync icon indicating copy to clipboard operation
node-klaw-sync copied to clipboard

EPERM dir or file error

Open weihsu932 opened this issue 6 years ago • 2 comments

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)
....
}

weihsu932 avatar Jun 24 '19 10:06 weihsu932

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 avatar Aug 26 '19 06:08 manidlou

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.

manidlou avatar Aug 26 '19 06:08 manidlou