liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

What does 'a newer version' in 'syncOption.update' option mean? #891

Closed microkof closed 3 years ago

microkof commented 3 years ago

syncOption.update boolean - Update the dest only if a newer version is on the src filesystem.

How can the src filesystem belong to a new version?

ghost commented 3 years ago

Perhaps the wording is bad... what it means is that setting syncOption.update as true will only update the remote file if there are any changes to that file on the local file system. If it is set to false, then it will be pushed to the remote no matter what (changes or not). Setting syncOption.update to true can save the plugin some work I believe.

microkof commented 3 years ago

Perhaps the wording is bad... what it means is that setting syncOption.update as true will only update the remote file if there are any changes to that file on the local file system. If it is set to false, then it will be pushed to the remote no matter what (changes or not). Setting syncOption.update to true can save the plugin some work I believe.

Thank you!

ghost commented 3 years ago

Just adding a note here to fix the documentation...

jeremy-farrance commented 3 years ago

I think this need to go further, what is the comparison? My guess would be file datetime local vs. remote. Can we get that clarified?