Open IanButterworth opened 9 years ago
An additional/alternative feature that would help with this issue, would be an option to force upload of any files currently open in the editor, irrespective of size comparison.
Or an option to compare file creation dates, rather than file size..
I have forked a version of this extension and made changes which use local file dates as the basis for whether files need to be uploaded. The first time you run the upload command, it will upload all of the files, since it doesn't know when they were last synchronized. From then on, only newly modified files should be uploaded.
This assumes a single-user model, in that changing a file locally will always cause it to be uploaded to the server, even if the file has been modified on the server. This is essentially the same model as Tim's original one where the file lengths are compared.
Please feel free to give it a try and give me any feedback; I've tested it reasonably but certainly not exhaustively. It can be found at https://github.com/ryanmcfall/brackets-ftp-sync; the .ZIP file there can be loaded into Brackets using the extension manager.
I find that if edits are made to docs that result in the same file size, it's difficult to ensure that remote matches local.
It would be very helpful to be able to disable the size comparison, to periodically do a, upload everything