Pass copied file list on success
See original GitHub issueIt would be extremely useful if the list of files copy()
d were passed to the callback/then. Even more so when a filter is used.
fs.copy('/tmp/myfile', '/tmp/mynewfile')
.then(files => {
console.log('success!', files.join(', '))
})
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Progress during large file copy (Copy-Item & Write-Progress?)
It seems like a much better solution to just use BitsTransfer, it seems to come OOTB on most Windows machines with PowerShell 2.0...
Read more >Copy files in Linux, avoid the copy if files do exist in destination
I wonder how could I tell the command "cp", once it tries to copy again, not to copy files again if they exist...
Read more >CopyFiles@2 - Copy files v2 task - Microsoft Learn
Use this task to copy files from a source folder to a target folder using match patterns. (The match patterns will only match...
Read more >Copy-Item : Copy Files like a Boss in PowerShell
Discover how copy-item cmdlet allows copy of a file while giving the ability to recurse files and use wildcards to select the files....
Read more >Hitchhiker's Guide to Robocopy - PDQ
Congratulations, you have successfully passed the Hackers 101 Course! ... /LEV:n, only copy the top n LEVels of the source directory tree.
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
As a short-term solution, why not just log in
filter()
? I’m not convinced adding options for this is a good idea. Long-term, I think we need to move to streams or AsyncIterators on these operations.Closing as
future
for the time being.