liximomo / vscode-sftp

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

Auto Upload on Save #888

Open dougkozar opened 3 years ago

dougkozar commented 3 years ago

I have a file-minify extension installed and running in VS Code. Whenever I save a source file (e.g., CSS or JS file) the minify extension creates/updates/saves a minified copy of it on my local machine.

I have SFTP set to "uploadOnSave": true,

When the minified copy gets saved to my local machine it does not auto upload to the server. The extension author said that is not a possible feature with his extension.

Is there someway I can set SFTP to auto upload any file that gets saved or updated locally without me having to open it and upload it manually?

Thanks!

ghost commented 3 years ago

My experience with this plugin is that if a remote folder is not synced with your local file system, then the plugin doesn't behave that well (i.e., the user has to intervene a lot). The best solution I've come up with to solving these syncing issues for creating files and auto uploading them is to always have the folder I want to upload them to synced with my local file system.

If that doesn't fit your use case, then I completely understand and will work on getting a feature added to the revamped version of SFTP plugin: https://github.com/thompsbrian/vscode-sftp-revived

dougkozar commented 3 years ago

The issue is this:

It would be great if SFTP would auto-upload the new file.

Thank you for considering this feature in your newly revamped version.

-Doug

On Thu, Feb 25, 2021 at 8:50 PM Brian Thompson notifications@github.com wrote:

My experience with this plugin is that if a remote folder is not synced with your local file system, then the plugin doesn't behave that well (i.e., the user has to intervene a lot). The best solution I've come up with to solving these syncing issues for creating files and auto uploading them is to always have the folder I want to upload them to synced with my local file system.

If that doesn't fit your use case, then I completely understand and will work on getting a feature added to the revamped version of SFTP plugin: https://github.com/thompsbrian/vscode-sftp-revived

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/liximomo/vscode-sftp/issues/888#issuecomment-786353297, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNR4B4U4S6P3BG3Q2ZDI2TTA346BANCNFSM4YBE5DCA .

juanyves commented 3 years ago

I have the same problem. This feature would be great. Thanks

maxyox commented 2 years ago

I also have the same problem. I use stylus CSS preprocessor to create my CSS file. When my stylus files saved and processed to my CSS file, the CSS file won't upload automatically.

It would be great if there is some kind of monitoring feature to monitor specific file or folder that change automatically and upload them to the server in the background. Just like how winSCP windows apps do the remote syncing behavior.

While I wait for the feature to be added in SFTP. Maybe now I will just have winSCP to do the remote syncing jobs.

mrdotori commented 2 years ago

I also have the same problem, too. i solved this issue.

  1. check your sftp server's timedate and your desktop's timedate what you using.
  2. match time each other.

thank you.

hannahmwool commented 1 year ago

Is there anything for this yet? The only feature I'm missing coming from Sublime.