-
-
Notifications
You must be signed in to change notification settings - Fork 35
Initial folder structure not restored in destination folderΒ #27
Copy link
Copy link
Closed
Description
Hey π First thanks for the effort put in this project π
I have a project structure that looks like this:
project
β
ββββnode_modules
β ββββmodule
β ββββpublic
β ββββdist
β β styles.css
β β index.html
β
ββββsrc
And I want to copy the public folder from node_modules/module/public into the src/public folder. So I run this command:
$ yarn cpy ./node_modules/module/public ./src/public
It works but the final src/public folder contains all the files but not the initial folder structure:
# just the files
β
ββββsrc
ββββpublic
β styles.css
β index.html
# expected folder structure
β
ββββsrc
ββββpublic
ββββdist
β styles.css
β index.html
And if I run it with the --parents I got this structure:
public
β
ββββnode_modules
β ββββmodule
β ββββpublic
β ββββdist
β β styles.css
β β index.html
Has someone an idea how I could get the expected folder structure?
Thanks in advance π
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels