I'm looking to build a client node app to keep a folder on the clients machine in sync with any changes that happen with a folder it's cloned from on a remote FTP server.
I could connect to the server and download all the files initially, but I'm not sure how to keep track of file changes.
I could keep a file with filenames/checksums for all files and folders somewhere on that remote server so I can tell when files need re-downloading. However I'm not sure how I'd handle file deletions, maybe if the file name is no longer in the server side hash file I know to delete it.
I guess I'm asking is there any better ways of keeping a local and remote folder in sync with Nodejs?
nodeis an absolute requirement andlftpwith its mirroring command is not an option. - Mark Setchell