AvianFlu / ncp

Asynchronous recursive file copying with Node.js.
MIT License
681 stars 103 forks source link

options.modified added. #50

Closed KiPSOFT-zz closed 10 years ago

KiPSOFT-zz commented 10 years ago

options.modified value is true, the target file exists, the file's modification date is compared. the target is smaller than the modified date of the file from the source file's modification date, the copy operation is performed. target file's modification date is set.

AvianFlu commented 10 years ago

Merged. Thanks!

tbranyen commented 7 years ago

This seems to be broken in the latest version of Node:

/home/tbranyen/git/diffhtml/packages/diffhtml-website/node_modules/ncp/lib/ncp.js:102
            if (file.mtime.getTime()>stats.mtime.getTime())
                                          ^

TypeError: Cannot read property 'mtime' of undefined