Copying all files and directories from one dir to another
See original GitHub issueI’m using this command to copy all files from build
directory to `dist:
copyfiles -u 1 build/* dist
It works fine except it doesn’t copy directories, How can we make sure it also copies the directories with files inside recursively?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:19 (5 by maintainers)
Top Results From Across the Web
How can I copy the contents of a folder to another folder ...
cp is the command to copy using a terminal, -r makes it recursively (so, current directory + further directories inside current) ~/folder1 is...
Read more >How to Copy All Files from a Directory to another ...
To copy multiple files with the “cp” command, navigate the terminal to the directory where files are saved and then run the “cp”...
Read more >Copy all files from one directory to another using Python
In this article, we will discuss how to copy all files from one directory to another using Python. This can be done using...
Read more >Copying files (cp command)
To make a copy of a file in the current directory, type the following: · To copy a file in your current directory...
Read more >cp - How do I copy folder with files to another folder in Unix/ ...
The option you're looking for is -R . cp -R path_to_source path_to_destination/. If destination doesn't exist, it will be created. -R means copy...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try
copyfiles -u 1 "build/**/*" dist
and let me know the resultsOnly works on Windows:
copyfiles -u 1 build/**/* dist
Only works on macOS:copyfiles -u 1 "build/**/*" dist