wrench-js icon indicating copy to clipboard operation
wrench-js copied to clipboard

Only copy newer files

Open endquote opened this issue 11 years ago • 2 comments

It would be nice to have an option in methods like copyDirSyncRecursive to only copy files if their modification time is newer than the one in the destination folder.

endquote avatar Nov 12 '13 04:11 endquote

Heya - I know this is 2 months old, but I agree it'd be cool to have. If you wanna pull request it (don't at all blame you if uninterested by this point) with a test I'd be happy to include it.

Thanks, sorry for the hella late reply!

ryanmcgrath avatar Jan 17 '14 07:01 ryanmcgrath

I'm on Windows so I ended up just calling out to robocopy instead. Would be cool to do everything in node though.

endquote avatar Jan 17 '14 16:01 endquote