Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to upload everything, disabling size comparison #52

Open
IanButterworth opened this issue Mar 10, 2015 · 3 comments

Comments

@IanButterworth
Copy link

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

@IanButterworth
Copy link
Author

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.

@IanButterworth
Copy link
Author

Or an option to compare file creation dates, rather than file size..

@ryanmcfall
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants