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

EISDIR: illegal operation on a directory #40

Open
stevenvachon opened this issue Dec 8, 2016 · 4 comments
Open

EISDIR: illegal operation on a directory #40

stevenvachon opened this issue Dec 8, 2016 · 4 comments

Comments

@stevenvachon
Copy link
Contributor

stevenvachon commented Dec 8, 2016

cpy('/project/lib/**/*', '/project/dupe')

Dir structure:

└── project/
    ├── lib/
    │   ├── include/
    │   │   ├── file1.js
    │   │   └── file2.js
    │   └── file.js
    └── package.json

Results in:

Cannot copy from `/project/lib/include` to `/project/temp/include`: cannot read from `/project/lib/include`: EISDIR: illegal operation on a directory, read

If I remove the lib/include dir, it works fine, but the structure of temp/ has been flattened.

This appears to be related to cpy/issues/10.

@schnittstabil
Copy link
Collaborator

Currently cpy does not support recusively copying. You probably want to use parents: true and nodir: true.

@danielweck
Copy link

Related issue: sindresorhus/cpy-cli#10 (comment)
=> usage of glob **/*.* vs. **/*, typically matches folder names (no filename extension)

@hum-n
Copy link

hum-n commented Apr 17, 2018

This is a must, it should work by default unless you have the nodir option.

@keverw
Copy link

keverw commented Jun 8, 2020

Unfortunately I ran into this issue too. However I was trying to copy one directory to another with the absolute path, no wildcards/glob... Was expecting this could handle that - unless I have something wrong... Was hoping to use this since it also supports progress reporting.

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

5 participants