copy and copySync: reallow copying to subdirectories
See original GitHub issueIn fs-extra
5.0.0, you fixed an issue that said that directories could be copied to their own subdirectories. This is wonderful, but I couldn’t help but notice that it would break some scripts. In some cases, one may want to copy a directory to its subdirectory, and use a filter function to prevent recursion. Perhaps you could give an option which is false by default that allows to copy to a subdirectory?
Issue Analytics
- State:
- Created 6 years ago
- Comments:12
Top Results From Across the Web
Copy folder recursively in Node.js - javascript - Stack Overflow
copySync & moveSync both will copy and move folders even if they have files or subfolders and ... Copies directory, even if it...
Read more >10 Practical Examples of Rsync Command in Linux - Tecmint
Rsync is the most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix ...
Read more >Sync Copy in fs-extra using NodeJS - Tutorialspoint
This method copies files or directories from one location to another location in a sync process. The directory can have sub-directories and ...
Read more >Copy without creating folders - Help and Support - rclone forum
So what i want is: "rclone copy /path/folder/ remote:destination ... to be copied to remote:destination without creating the subfolder.
Read more >Robocopy examples - 4sysops
Robocopy (Robust File Copy) is a command line folder and file ... /PURGE /E. /MIR also copies all files in subfolders, including empty...
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 Free
Top 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
With v5 this fails and I don’t quite follow the logic.
yields this error:
Error: Cannot copy '/db/util' to a subdirectory of itself, '/build/db/util'
I’m copying
db
tobuild/db
, not to a subdirectory ofdb
(itself).I saw this again in v8.0. Trying to copy a symlink over another symlink.