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

feat: ignore-errors #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ran-j
Copy link

@ran-j ran-j commented Feb 13, 2023

This PR fix the folling problem.

this is the error when check my tempo folder:

Error: EPERM: operation not permitted, lstat 'C:\Users\ran-j\AppData\Local\Temp\PW\3360\7F15E576-30BF-4CDA-9565-8E84000D30CF.scratch\lock'] {
  errno: -4048,
  code: 'EPERM',
  syscall: 'lstat',
  path: 'C:\\Users\\ran-j\\AppData\\Local\\Temp\\PW\\3360\\7F15E576-30BF-4CDA-9565-8E84000D30CF.scratch\\lock'

On windows when I need to check:

//this will not work on some windows
const du = require("du");
du(require("os").tmpdir()).then(console.log)
//this is my fix
const du = require("du");
du(require("os").tmpdir(), { ignoreErrors: true }).then(console.log)

nodejs/node#35853

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

Successfully merging this pull request may close these issues.

1 participant