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

fix: missing fs/promises patches to resolve Not found error #124

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

robertsLando
Copy link
Member

access and realpath patches were missing

@robertsLando robertsLando changed the title fix: missing fs.promises patch to resolve Not found error fix: missing fs/promises patches to resolve Not found error Nov 13, 2024
@robertsLando robertsLando merged commit 93fed60 into main Nov 13, 2024
24 checks passed
@robertsLando robertsLando deleted the fix-missing-patch branch November 13, 2024 11:11
fs.promises.read = util.promisify(fs.read);
fs.promises.realpath = util.promisify(fs.realpath);
fs.promises.fstat = util.promisify(fs.fstat);
fs.promises.statfs = util.promisify(fs.fstat);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a copy-paste error here.

Shouldn't this be: fs.promises.statfs = util.promisify(fs.statfs);

I recently updated to pkg v6 and my statfs calls are giving the following error, because actually fstat is called instead.

TypeError: The "fd" argument must be of type number. Received type string ('/')

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for highlight this. Just submitted a commit on master to fix this

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing and releasing.

statfs is working again with v6.3.1 👍

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.

2 participants