question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot simply copy an entire folder

See original GitHub issue

Issuehunt badges

I am getting errors for all folder with this command

cpy test/dist somewhere
Cannot glob `test/dist/folder, test/dist/folder-2`:  EISDIR: illegal operation on a directory, read

I tried

cpy test/dist/**/* somewhere

but same result.

I understand why there is an error, but it’s pretty weird to not be able to ignore folder, I would have make this the default behavior.


IssueHunt Summary

Backers (Total: $80.00)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:8
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
Rownocommented, Apr 25, 2019

@sindresorhus How would you feel about adding an --up flag like the copyfiles package has? This could then be combined with the --parents flag. If it sounds good to you I might implement it.

1reaction
sindresorhuscommented, Jun 11, 2019

@Rowno Sure, if that resolves all the issues mentioned in this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to copy an entire folder structure without copying the files ...
Now open a Windows command window and run the following command. It's the /T option that copies just the folder structure not the...
Read more >
Why the hell can't you copy folders in Google Drive?
Give it a try yourself. Open up Google Drive and right click on a folder. In that menu, you'd expect to see something...
Read more >
Folder contents failing to copy - Microsoft Community
Having recently updated to Windows Pro 8,1, I find that when I copy a folder to a network drive , the contents do...
Read more >
[How to Fix] Google Drive Can't Make a Copy - MultCloud
Before copying, you need to make sure that your copying object is a file instead of a folder, because Google Drive does not...
Read more >
I cannot copy individual files to the root c: directory
That also was a "feature" in Win10, not many files can be put in the root of C: or the Boot/System drive if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found