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
[fs.cp] fails with ERR_FS_EISDIR on Windows Powershell #44653
Comments
You need to pass
They're long paths. Without the qualifier you can't manipulate paths longer than 260 bytes. |
Okay, tried it. That works, but it still seems wrong to me. First, this is the only description in the official docs, sync/async depinding on which version one looks at:
To me this very much says that I am actually expected to give directories, not files, as Second, if I don't want to recurse, I now have to go through the whole trouble of reading the directory's contents, filtering by type, and then calling In conclusion, I'd like to request:
Is this ok here or should I open a new ticket for the request? |
It's still marked as experimental so you can just open a pull request with your proposed changes. Not everyone may agree with that change but you won't know until you try. Documentation pull requests are always welcome, of course. |
Thanks for the info 🙂
Ok, I'll see when and what I can do. Closing this now, since it's not strictly a bug. |
Version
v16.17.0, v18.9.0
Platform
Microsoft Windows NT 10.0.19044.0 x64
Subsystem
No response
What steps will reproduce the bug?
In Powershell:
How often does it reproduce? Is there a required condition?
Happens every time. Both drives are external, connected via USB.
Source can also be a subdirectory, analogous error.
I generally use Powershell Core, not the built-in Powershell.
But the same happens there.
What is the expected behavior?
Copy should proceed normally. My understanding is that I'm expected to give a root directory for the copy operation, right?
What do you see instead?
See reproduction above.
Apart from the error itself, I find the path strings weird. Don't recall having seen that
\\?\
before.That stuff is also given to the
filter
function.Additional information
This was triggered by jprichardson/node-fs-extra#965 (comment)
The text was updated successfully, but these errors were encountered: