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

Support for fs.cp(), fs.cpSync(), fsPromises.cp()`? #358

Open
rauschma opened this issue Jun 21, 2022 · 1 comment
Open

Support for fs.cp(), fs.cpSync(), fsPromises.cp()`? #358

rauschma opened this issue Jun 21, 2022 · 1 comment

Comments

@rauschma
Copy link

The following three functions were added in Node.js v16.7.0 and are very useful because they enable you to copy directories recursively. AFAICT, mock-fs does not currently support them:

@3cp
Copy link
Collaborator

3cp commented Jun 21, 2022

ENOENT: no such file or directory, opendir 'a'

Unfortunately, these new apis use opendir internally.

#319
Currently there is no way to support it, because nodejs has no intention to expose the new fs_dir binding for us to mock.

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

No branches or pull requests

2 participants