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

fix: copyFile and copyFileSync patch #1484

Merged
merged 4 commits into from
Feb 3, 2022
Merged

fix: copyFile and copyFileSync patch #1484

merged 4 commits into from
Feb 3, 2022

Conversation

robertsLando
Copy link
Contributor

@robertsLando robertsLando commented Jan 17, 2022

Fixes #420

Based on @medikoo solution: #420 (comment)

@robertsLando
Copy link
Contributor Author

@jesec Ping please

@robertsLando
Copy link
Contributor Author

Anyone that could look at this? 😢 @jesec

@jesec
Copy link
Contributor

jesec commented Jan 24, 2022

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
Copy link
Contributor

jesec commented Feb 3, 2022

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

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