ryanmcgrath / wrench-js

Recursive file operations in Node.js
MIT License
435 stars 71 forks source link

Only copy newer files #66

Open endquote opened 10 years ago

endquote commented 10 years ago

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.

ryanmcgrath commented 10 years ago

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!

endquote commented 10 years ago

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