Synchronize
So is it not possibly to use both parameters at same time?
Version 4.0.7
Advertisement
Advertisement
OR is true.For example: I change the content of my local file for just one octet, the size is the same. Then I want to upload it to a ftp site with the synchronize remote command,
the synchronize parameter criteria=both means :
* file size modification AND time modification ? (In this case, the file will not be uploaded (because the file has the same size))
* file size modification OR time modification ?(In this case, it will.)
Advertisement
Would it explain the issue? Note that you may have local/remote clocks out of sync (or different timezones), hence even recently modified local file may have older timestamp than older remote file.When both options are checked (GUI equivalent of 'both'), modification time has higher priority. As a consequence, file is not considered updated, despite having different size, if it is older
Your understanding is correct. WinSCP transfers the file if either time or size changes.My understanding of the criteria=both dialogue would be if one of them (size,time) is different, the file should be synchronized. I have used the criteria both thinking if the file is modified or size has been changed then the file will be uploaded. I just failed to do that for my project which I test ran today. I will change it to size as it is a stream of data generated on that computer. But think of my question, is it beneficiary to have an option which says change of one or the other will upload the file or just use two lines of code saying synchrozie criteria=size and one more line with time?
Advertisement
You can post new topics in this forum