Remove File Change Prompt (Help Make FileZilla A Lot Faster)

Moderator: Project members

Message
Author
azoundria
500 Syntax error
Posts: 16
Joined: 2011-05-09 18:16
First name: Matt
Last name: McGirr

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#16 Post by azoundria » 2011-05-18 11:26

In the case of a database, I can't see how:
1) You would even set FileZilla to upload from there. Doesn't FileZilla set that the file is saved in a temporary folder and opened with a text editor? Thus, you would have to:
(a) Have the database program as your default text editor for some reason, or
(b) Point your database program to use the newly created temporary file to store things,
neither of which seem very likely to happen.
2) In addition, the timing would still have to be exactly perfect, so the database would be unused for a full second, then used at exactly the right moment. Different settings would further decrease the likelihood.

I also don't understand why if a file is locked to be uploaded, you can write to it at all (such to cause data loss).

Finally, I question the claim that it's impossible to tell if a file is being written to in Windows. Didn't you say that files being written to could not be renamed, and thus you can at the very least tell it's being written to because it can't be renamed.

What would be interesting to see is if you can copy the file, then upload it. In this way, the original file is never locked.

User avatar
botg
Site Admin
Posts: 31574
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#17 Post by botg » 2011-05-18 20:47

In the case of a database, I can't see how:
1) You would even set FileZilla to upload from there. Doesn't FileZilla set that the file is saved in a temporary folder and opened with a text editor? Thus, you would have to:
(a) Have the database program as your default text editor for some reason, or
(b) Point your database program to use the newly created temporary file to store things,
neither of which seem very likely to happen.
I know of several business applications which make use SQLite as database storage, with one database file per "project", whatever project means for your job of choice. These files have a special extension, say .BAPrDb which is associated with the application.

Workflow goes like this: User connects to server where files are stored, right-clicks a specific project file, clicks Edit. File gets downloaded. Local copy gets opened in said business application. User works with the project, his every change resulting in a write to the file. User is done, tabs back into FileZilla and tells FZ that yes, he's done with the editing and wants to re-upload it.
2) In addition, the timing would still have to be exactly perfect, so the database would be unused for a full second, then used at exactly the right moment. Different settings would further decrease the likelihood.
Imagine there would be auto-upload. User clicks something in his program, the database file changes, FileZilla auto-uploads. Since the file is big, it takes a minute. After half of that time, user clicks somewhere else in his program. File changes again. Result: The file on the server is inconsistent, part of it from the old version, part from the new.
I also don't understand why if a file is locked to be uploaded, you can write to it at all (such to cause data loss).
Because on some systems there just is no mandatory file locking, only advisory file locking. Also, file locking does not work reliably on network resources.
Finally, I question the claim that it's impossible to tell if a file is being written to in Windows. Didn't you say that files being written to could not be renamed, and thus you can at the very least tell it's being written to because it can't be renamed.
Actually you can in some situations rename files that are being written to even under Windows, resulting in some really weird behavior. If you rename foo.txt into bar.txt and then try to creat a new foo.txt it fails if there's still writing into bar.txt going on.

User avatar
boco
Contributor
Posts: 24152
Joined: 2006-05-01 03:28
Location: Germany

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#18 Post by boco » 2011-05-18 20:54

All Windows OS using NT kernels lock files using handles, not file names. Thus you can rename locked files freely. Most of the time you can even create a new file with the old name right away (that's how some system file replacing tools work).
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

azoundria
500 Syntax error
Posts: 16
Joined: 2011-05-09 18:16
First name: Matt
Last name: McGirr

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#19 Post by azoundria » 2011-05-18 23:57

What would be interesting to see is if you can copy the file, then upload it. In this way, the original file is never locked.

User avatar
botg
Site Admin
Posts: 31574
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#20 Post by botg » 2011-05-19 19:43

Can be very impractical with larger files.

azoundria
500 Syntax error
Posts: 16
Joined: 2011-05-09 18:16
First name: Matt
Last name: McGirr

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#21 Post by azoundria » 2011-05-24 17:20

My files (PHP scripts) are all under 30Kb. The dialog would be fine for larger files.

azoundria
500 Syntax error
Posts: 16
Joined: 2011-05-09 18:16
First name: Matt
Last name: McGirr

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#22 Post by azoundria » 2011-05-30 16:19

It's been about a week. I don't want to rush anything, but FileZilla is really a great tool and since the administration is quite open to discuss their issues and work towards resolving them I have no doubt it can be the single best choice for FTP software. I have this feature on FireFTP, but I really like keeping it separate from the browser, and the FireFTP one crashes some of the time (for the reasons you mentioned). If you can build it so it wont crash, then this is making history - something that no other FTP client can do. You have to understand that a lot of web developers use FTP like I do, editing many remote files - and when you make so many edits that prompt takes away so much time and productivity.

smarty
500 Command not understood
Posts: 1
Joined: 2014-10-06 19:32
First name: Altin
Last name: Fisteku

Re: Remove File Change Prompt (Help Make FileZilla A Lot Fas

#23 Post by smarty » 2014-10-06 19:37

botg wrote:That's one extremely dangerous change. It will result in FileZilla uploading (and thus locking a file) while it may still be written to by another program.

The result? Simple: Local file corrupt, remote file corrupt and you likely not having done backups.
Why not make it optional? Make the alert enabled by default but add an option on preferences dialog to disable it if I want.
It is extremely frustrating & time wasting and I have even created some AutoIt script to "fight" this dialog. Never had any kind of loss from that.

friendofpa
500 Command not understood
Posts: 1
Joined: 2018-03-01 02:43
First name: Tony
Last name: Cast

Re: Remove File Change Prompt (Help Make FileZilla A Lot Faster)

#24 Post by friendofpa » 2018-03-01 02:47

Any updates on this? I have been a fireftp user for 10+ years and am now forced to use another ftp client. I have dabbled with every other major client (including winscp), filezilla is my second choice. This prompting is the only thing holding me back from using it all time time.

I believe there should be a setting to disable the prompt after file change but default to the current state with prompting. Most developers have one file open in only one instance of a text editor (for me notepad++). When they save, they would like to immediately check the changes instead of having to switch windows back to click yes. It is annoying and the stability doesn't outweigh the hassle.

Post Reply