default file action - overwrite if newer

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
nickburt
504 Command not implemented
Posts: 6
Joined: 2018-09-12 16:48
First name: Nick
Last name: Burt

default file action - overwrite if newer

#1 Post by nickburt » 2018-09-12 16:57

Hi folks,

I am transferring using Filezilla to a cloud storage (Box).
If I set the default file exists action to overwrite if source file newer, some of my files, which haven't been changed since the last transfer, still get transferred, while others are correctly skipped.
I have preserve timestamps of transfered files checked.

What am I missing?
Many thanks in advance.

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

Re: default file action - overwrite if newer

#2 Post by boco » 2018-09-12 19:05

Could you check if the timestamps indeed match to the minute? Some FTP server software can get quite "creative" when displaying timestamps. Also note that older files might not display file time at all, for LIST (they display the year instead).
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

nickburt
504 Command not implemented
Posts: 6
Joined: 2018-09-12 16:48
First name: Nick
Last name: Burt

Re: default file action - overwrite if newer

#3 Post by nickburt » 2018-09-12 19:23

Time stamps should be identical. All files are relatively new, or at least no older than around 7 or 8 years old. All created and worked on in Windows environment.

I've just tried an experiment. Transferred the entire contents of a folder on my pc to a folder in Box. Once it had finished, I did it again, so no files were changed between the two transfers. It transferred every single file, without skipping any.

nickburt
504 Command not implemented
Posts: 6
Joined: 2018-09-12 16:48
First name: Nick
Last name: Burt

Re: default file action - overwrite if newer

#4 Post by nickburt » 2018-09-12 19:26

Just trying it again.

Exactly the same transfer as before.

This time it's skipping some and transferring some.

Bizarre.

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

Re: default file action - overwrite if newer

#5 Post by boco » 2018-09-12 19:40

Please note that by "older", I referred to files older than a moth (it' actually not defined anywhere). If the listings are obtained by LIST, those older files usually lose their file time and only display date. FileZilla shows "00:00" as time. DOESN'T APPLY TO LISTS OBTAINED BY MLSD.

Unfortunately, I had bizarre cases where FileZilla showed timestamps of just transferred files as being 7 or 8 years old. When connecting to a server, it attempts to find out the server's timezone offset by checking the first file in the root (MDTM) and compare it to the listing timestamp. If the server returns odd values, FileZilla might erroneously apply a huge offset value.
tl;dr: Check the year of files. Even if everything else seems to match, the year could be off.

Personally, I don't rely on timestamps too much.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

nickburt
504 Command not implemented
Posts: 6
Joined: 2018-09-12 16:48
First name: Nick
Last name: Burt

Re: default file action - overwrite if newer

#6 Post by nickburt » 2018-09-12 20:04

Filezilla is displaying the correct date (year, month and day) and time (hrs, mins and secs) stamp of the last modified date and time when I view the remote site files and the local site files.
i.e. they are identical and should, therefore, have been skipped because I have "Preserve timestamps of transferred files" checked and my "default file exists action" is set to "Overwrite file if source file newer"

Using the ability to transfer only those that have been revised is important to be able to update remote folders quickly and efficiently.
Surely, it's not rocket science to write code that does a simple check. (Not that I can write code!!). In fact, Filezilla seem to think they have written the code for this - it just doesn't work.

I did wonder if an offset would be needed to account for time zone differences between local and remote. But, it doesn't seem to (or shouldn't) be needed if the "Preserve timestamps of transferred files" is checked.

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

Re: default file action - overwrite if newer

#7 Post by botg » 2018-09-13 07:23

Please carefully watch the message log, there must have been errors scrolling by.

nickburt
504 Command not implemented
Posts: 6
Joined: 2018-09-12 16:48
First name: Nick
Last name: Burt

Re: default file action - overwrite if newer

#8 Post by nickburt » 2018-09-13 13:53

Just tried exactly the same transfer again.
Nothing has been changed since the last time yesterday, so all date/time stamps are still the same.

The same happened. Some were skipped, some were transferred.

Bog eyed now, having watched the transfer log - no errors observed.

nickburt
504 Command not implemented
Posts: 6
Joined: 2018-09-12 16:48
First name: Nick
Last name: Burt

Re: default file action - overwrite if newer

#9 Post by nickburt » 2018-09-18 16:15

Still having this problem, anyone got any other ideas?

Post Reply