Reputation: 651
I'm trying to figure out how to autoftp with Filezilla. Are there any other programs that do this right off the bat?
Upvotes: 44
Views: 97422
Reputation: 131
Official Answer is ==> Auto-uploading of changed files will never come, as FileZilla cannot detect when the external editor has really finished saving the file.
Yeah,yeah Great Dev’s little productivity.
How to Use :
1.Download and install autoit
2.Lauch The Script
3.Script will waiting for the window “File has changed” and will click yes each time .
Here is the Solution :
HotKeySet("{ESC}", "_Terminate") ;~ dimm exit by esc
Func _Terminate()
Exit
EndFunc ;==>_Terminate
;~ func to mange the windows
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
MsgBox("","Info","When file edition i will always click yes for upload",5)
Run('C:\Program Files\FileZilla FTP Client\filezilla.exe')
$mywindow = "File has changed"
While 1 ; start loop here
ToolTip("Waiting...")
;~ _WinWaitActivate("File has changed","")
_WinWaitActivate($mywindow,"")
;~ [CLASS:Button; INSTANCE:2]
ControlClick($mywindow,"", "[CLASS:Button; INSTANCE:2]") ;~ dimm or simply send yes key Send("{y}")
ToolTip("Loop")
Sleep(5000)
Wend ; stop loop here
Upvotes: 0
Reputation: 300
Unfortunately there no option on filezilla can auto agree upload when file has been changed.
Mobaxtern can do that. You can choose "always upload" when file has been changed.
You can edit the file with any editor, whenever you save, it will upload.
Upvotes: 1
Reputation: 2378
There is an easier way to do that with NetBeans IDE, there is an option to upload files with FTP or SFTP on save, manually or on Run
Now add your ftp details. Make sure your Initial directory path is correct, (your website path) so you will not accidentally replace any files from other website in the file manager
Upvotes: 5
Reputation: 13476
I like to use WebDrive ($40) which mounts a remote server (S)FTP/SSH/Cloud to a local drive (eg. X: on Windows). You can then just do everything to drive X: as if it's a local drive and WebDrive automatically uploads the changes to the remote server.
Upvotes: -2
Reputation: 89
This response is late, but hopefully it will be helpful to those looking to get past Filezilla's "do you want to overwrite" prompt every time a file being edited locally is saved. Unfortunately, the Filezilla developers are staunchly opposed to making this behavior optional. It is a problem for many, especially when working with limited desktop space, since every time the prompt appears, one must expose the hidden filezilla window just to click okay.
Anyway, the answer is WinSCP. It is also free and is so similar to filezilla that I needed no learning to use it immediately.
Cheers!
Upvotes: 7
Reputation: 677
I use WinSCP for some of its amazing benefits. I connect to my FTP server with WinSCP and let it monitor my local folder /website/public_html
.
Any changes I make in my local folder automatically get uploaded to my FTP server by WinSCP. The feature is called Keep remote directory up to date:
http://winscp.net/eng/docs/task_keep_up_to_date
As for SCSS, I also use it:
I have a script that opens a console window to watch my /website/scss
files and compiles them to /website/public_html/styles/
. WinSCP sees the CSS file has changed (or is new) and automatically uploads it.
Notice: The only downside is you cannot reach your error_log
as that is automatically generated on the server by PHP. To do this you can easily instantiate another WinSCP to connect to your website. Now you have 1 WinSCP monitoring your local folder and 1 WinSCP where you can access your site map.
Upvotes: 44
Reputation: 413
Notepad++ certainly is wonderful for this particular function and it even saves a cache of the whatever has been accessed and modified from the remote server.
The downside however (for me) is that Notepad++ will not auto-upload preprocessed CSS files like .scss or .less. I tried actually opening the resulting .css files in Notepad++ to mimic the act of editing them, but that still puts an extra step in the process. I have to click over to the tabs and manually save them (after the 'your file as changed prompt').
Currently, after I make changes, I click over to FZ and upload the files manually.
Upvotes: 7
Reputation: 39522
If by "autoftp" you mean "update the file on the server whenever I save it" and you're working with code, then I'd recommend the wonderful Notepad++
Upvotes: 10