I have a task where I need to look for updates between a bunch of files on server and a bunch of files on local computer. I am totally at loss here, what way will be the best and fastest ?
I am planning on using libcurl with c++ to log on to ftp.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends a bit about other factors like if others but one way could be to create a directory structure where the date is the directory name. The advantage of this its easy to find what belongs to a particular update and you can sort the directories after name e.g. yyyymmdd. You just need to remember when the last update was, you can also include a file with information about changes and a version number to make it extra user friendly.
Normally a release may consist of several new files so keeping them together under the same umbrella may be a good idea instead of updating each individual file since after some time it may make it complicated to remember what fits together.