evanplaice / node-ftpsync

Intelligent file syncronization over FTP
http://evanplaice.github.io/node-ftpsync
MIT License
74 stars 21 forks source link

Allow to override isDifferent #34

Open pescuma opened 8 years ago

evanplaice commented 7 years ago

Could you explain the purpose of this change?

pescuma commented 7 years ago

I had the problem what timestamps where not compared correctly and, if the file existed already, it would never get updated. This method allows me to make files always overwrite if found in both sides.

evanplaice commented 7 years ago

Take a look at the latest commits. Timestamp comparison has finally been added.