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.

Copying all files and directories from one dir to another

See original GitHub issue

I’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:open
  • Created 4 years ago
  • Reactions:10
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

36reactions
calvinmetcalfcommented, May 16, 2019

try copyfiles -u 1 "build/**/*" dist and let me know the results

9reactions
SirwanAfificommented, May 16, 2019

Only works on Windows: copyfiles -u 1 build/**/* dist Only works on macOS: copyfiles -u 1 "build/**/*" dist

Read more comments on GitHub >

github_iconTop 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 >

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