Skip to content

Conversation

@ronhasson
Copy link

On newer versions of FS, they require async functions to have a callback.
Since fs.close is an async, it throws an error when you run the code (and crashes everything).

fs.close
fs.closeSync

on newer versions of FS, they require async functions to have a callback.
since fs.close is an async it throws an error when you run the code.
https://nodejs.org/api/fs.html#fs_fs_close_fd_callback
@berlangerc
Copy link

Thank you!

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