Synchronizing timestamps
I want to synchronize local timestamps (just the timestamps-not the file contents) with the ones on a SFTP server.
The files are identical but the timestamps don't match.
I need a synchronize function that allows to set just the timestamps if the filesize is identical on both versions.
The need for this arises because I edit the files on different computers and use version control (Subversion) to keep the individual local copies up to date. This means that my local files have identical content but differing timestamps.
The workflow is as follows:
I do changes on one of the machines, upload them to the web server and commit them to the repository.
When I update the local copy on another machine from the repository, the timestamps of the updated files are set to the current time.
This is a problem for timestamp-based synchronize functions as remote files are falsely reported as not being up-to-date.
I am forced either to set the modification times by hand (a problem with Windows) or to download all changed remote files although they are already up to date, just to get the timestamps right.
The files are identical but the timestamps don't match.
I need a synchronize function that allows to set just the timestamps if the filesize is identical on both versions.
The need for this arises because I edit the files on different computers and use version control (Subversion) to keep the individual local copies up to date. This means that my local files have identical content but differing timestamps.
The workflow is as follows:
I do changes on one of the machines, upload them to the web server and commit them to the repository.
When I update the local copy on another machine from the repository, the timestamps of the updated files are set to the current time.
This is a problem for timestamp-based synchronize functions as remote files are falsely reported as not being up-to-date.
I am forced either to set the modification times by hand (a problem with Windows) or to download all changed remote files although they are already up to date, just to get the timestamps right.