Opened 19 years ago

Last modified 11 years ago

#2350 closed Feature request

Overwrite read-only files

Reported by: ffs Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: ffs, macmewes, arjunadave, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

Hi,

It would be great if there was an option to Overwrite read-
only files.

In actual version (2.2.16) the following status message
is shown when FileZille tries to Overwrite read-only files:

"Too many retries"

Maybe this option could be at "File already exists Dialog
Box" and/or at "File Transfer Settings".

Thanks.

Change History (7)

comment:1 by macmewes, 19 years ago

I do think this option would not be useful.

When you logon to a FTP-space Filezilla is able to detect
ownership and permissions by using the "ls" command only if
the remote FTP-Server is allowing this information.

Sometimes you logon to a foreign FTP-Server which is
somewhat read-write-protected (upload allowed, but not the
deletion) to protect other uploads from being overwritten by
accident. So if this option would be "on" the remote
FTP-Server may log all these events rendering your client
unable to access that FTP-space anymore.

If you are the owner of the FTP-Space you should be able to
set the permissions prior to the upload on the FTP-Server.

kind regards

Martin

comment:2 by ffs, 19 years ago

Thanks, Martin.

However, I'm afraid I was not clear enough!
I'm not talking about NTFS or Unix file permissions, but about
the Read-Only file ATTRIBUTE!

For example, if I have a local file wich has the read-only
ATTRBUTE set and I try to GET another copy of the file from
the FTP server, FileZilla does not oveerwrite the local file!
Instead, FileZilla ignores the Read-Only attribute and tries
indefenitelly to overwrite the file without changing its attribute
from read-only to "not read-only"!

The following messages are displayed in the command
window for each download try:

Error: Could not open the local file x:\file.asp
Error: Download failed
Status: Starting download x.asp
Status: Download successful

and the following status is written for the file in the queue
window:
"Too many retries"

The same problem happens when trying to upload a file when
the ftp remote file has the ReadOnly file ATTRIBUTE set.

If this option doesn't exist, then I have to go to local files and
remove theirs Read-only ATTRIBUTE manually.

Automatically changing a file's read-only ATTRIBUTE is,
indeed, a must option! Specially for local read only files! (I do
not know if it would be possible for remote files)

Thanks for the attention.

comment:3 by ffs, 19 years ago

Thanks, Martin.

However, I'm afraid I was not clear enough!
I'm not talking about NTFS or Unix file permissions, but about
the Read-Only file ATTRIBUTE!

For example, if I have a local file wich has the read-only
ATTRBUTE set and I try to GET another copy of the file from
the FTP server, FileZilla does not oveerwrite the local file!
Instead, FileZilla ignores the Read-Only attribute and tries
indefenitelly to overwrite the file without changing its attribute
from read-only to "not read-only"!

The following messages are displayed in the command
window for each download try:

Error: Could not open the local file x:\file.asp
Error: Download failed
Status: Starting download x.asp
Status: Download successful

and the following status is written for the file in the queue
window:
"Too many retries"

The same problem happens when trying to upload a file when
the ftp remote file has the ReadOnly file ATTRIBUTE set.

If this option doesn't exist, then I have to go to local files and
remove theirs Read-only ATTRIBUTE manually.

Automatically changing a file's read-only ATTRIBUTE is,
indeed, a must option! Specially for local read only files! (I do
not know if it would be possible for remote files)

Thanks for the attention.

comment:4 by ffs, 19 years ago

Hi, Martin, what do you thnik about this option, after what
I explained?

Thanks.

comment:5 by arjunadave, 17 years ago

When is this likely to get done?

Great program BTW! :)

comment:6 by Tim Kosse, 17 years ago

A read-only file cannot be overwritten since it is read-only.

comment:7 by arjunadave, 17 years ago

Thanks for your quick response.

There is a genuine need for such an option, one where it asks you to confirm the overwrite for this and all subsequent read only files. Such an option is available in other FTP programs such as SmartFTP. The default can be to have it not overwrite, but it would be very convenient for someone who knows what they are doing to be able to authorise the overwriting in FileZilla without having to go to an explorer window and manually remove the Read Only flag.

Moreover, when doing multiple files there is a real risk that you will overlook the fact that one or more of the files has NOT been copied because of this. You are forced to manually check through the failed transfers all the time, determine that the error is due to the Read Only flag, manually reset it and then re-FTP the file. This gets pretty tedious.

Anyway it would be nice to have the option. Once again thanks for your response.

Note: See TracTickets for help on using tickets.