cpy-cli: Cannot simply copy an entire folder

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

About this issue

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

Most upvoted comments

@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.

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