Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

fix: copyFile and copyFileSync patch - #1484

Merged
jesec merged 4 commits into
mainfrom
fix#420
Feb 3, 2022
Merged

jesec merged 4 commits into
mainfrom
fix#420

Conversation

@robertsLando

@robertsLando robertsLando commented Jan 17, 2022

Copy link
Copy Markdown
Contributor

Fixes #420

Based on @medikoo solution: #420 (comment)

@robertsLando
robertsLando requested a review from jesec January 17, 2022 17:03
@robertsLando

Copy link
Copy Markdown
Contributor Author

@jesec Ping please

@robertsLando

Copy link
Copy Markdown
Contributor Author

Anyone that could look at this? 😢 @jesec

@jesec

jesec commented Jan 24, 2022

Copy link
Copy Markdown
Contributor

looks OK. but I don't think it is a clever idea to readFile and then writeFile. Is it possible to do it with stream or chunks?

Also is the function for extracting native addons still required? Can't we just use this?

@jesec

jesec commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

Also, we may want to do the same thing for the new fs.cp and fs.cpSync.

https://nodejs.org/dist/latest-v16.x/docs/api/fs.html#fscpsyncsrc-dest-options

@jesec
jesec merged commit 72bc8b3 into main Feb 3, 2022
@jesec
jesec deleted the fix#420 branch February 3, 2022 06:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs.copyFile() does not work with /snapshot paths fs.copyFile and snapshot filesystem

3 participants