Author Topic: Download problem with updated file  (Read 606 times)

obfuscode

  • Sr. Member
  • Posts: 59
Download problem with updated file
« on: November 08, 2013, 06:43:26 PM »
Hey JD,

I found an edge-case bug:

If I have a folder open that contains files that get written to by my server, if I try to download one after it's been modified without refreshing the folder contents, Yummy tries to download it then gets stuck and displays "Stalled" for up to a minute before it eventually succeeds and downloads.

Not a big deal, just an annoyance.

Cheers!
Jace

JD

  • Administrator
  • FTP Guru
  • Posts: 2397
Re: Download problem with updated file
« Reply #1 on: November 11, 2013, 04:37:38 AM »
It's not really a bug but a fact of life with FTP : it's not a file system so there is no 'locking' mechanism in place. That means the file you're downloading can be changed in size or content at any time while you're doing so. Nothing can really be done to prevent it.

In these cases, Yummy is coded to not fall over and die as you can see. I've seen a few other apps that don't fare so well... ;)

obfuscode

  • Sr. Member
  • Posts: 59
Re: Download problem with updated file
« Reply #2 on: November 11, 2013, 07:16:19 AM »
Could Yummy do a refresh before initiating the download? Not worth wasting your time on but just curious if for <= X number of files, it could refresh the parent folder or the file itself to get the correct size before downloading?

No worries though, you have more important things to do :)

Thanks man, been years and still the best! Love it :D

- Jace

JD

  • Administrator
  • FTP Guru
  • Posts: 2397
Re: Download problem with updated file
« Reply #3 on: November 11, 2013, 11:24:21 AM »
It could, but that would mean an added delay before a file can start transferring, which is something most people don't want and is likely to actually be useful rarely, purely to keep a status display up to date. Of course my point was that the file size could potentially change at any time during the transfer too, so there are so many times it's possible to get out of sync, the fact is that most of the time it's pointless checking.

Note that your file transfer will only complete when the server sends a transfer complete message. The size is most just for display purposes.