Skip to content

fixed fs for newer version of fs/node#5

Open
ronhasson wants to merge 1 commit intoilich:masterfrom
ronhasson:patch-1
Open

fixed fs for newer version of fs/node#5
ronhasson wants to merge 1 commit intoilich:masterfrom
ronhasson:patch-1

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

Comments