Yummy Software
Welcome, Guest. Please login or register.
December 05, 2008, 10:43:17 PM
3130 Posts in 601 Topics by 672 Members
Latest Member: matt.stuart
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Yummy FTP Talk  |  Slow calculation of file and folder sizes « previous next »
Pages: [1] Print
Author Topic: Slow calculation of file and folder sizes  (Read 1233 times)
Christian Roth
Newbie
*
Posts: 7


View Profile
Slow calculation of file and folder sizes
« on: December 27, 2007, 02:22:41 PM »

Hi,

I often need to know the (accumulated) size of a folder. I noticed that calculating the accumulated size of a folder is much slower in YummyFTP than it is e.g. in Interarchy. I checked the commands used by both and it seems like YFTP is actively descending the folder hierarchy, whereas Interarchy tries a "LIST -a -R" on a folder first, which - when supported - gives it a recursive file and folder listing with a single, fast command. Is there a way to have YFTP try that command (and parse its output) at first when calculating sizes for a folder?

Also, it would be great to have an (optional) function "calculate sizes in background" (like in the Finder), where YFTP would recursively fetch the size information for the current FTP connection and update (and cache) the file and folder size display in its windows.

Is any of the above possible right now already? I searched the preferences and connection options, but haven't found any respective option so far.

Thanks, kris.
Logged

Yummy FTP 1.6.1b2
JD
Administrator
FTP Guru
*****
Posts: 1380


View Profile Email
Re: Slow calculation of file and folder sizes
« Reply #1 on: December 28, 2007, 09:26:24 AM »

I know about the recursive LIST mode, but have not yet added support for it since it is non-standard and not widely supported. However, it would make an exceptionally quicker calculation time and shouldn't be too hard to implement, so I'll prioritize this for an update.

An automatic 'Calculate sizes' option could be added. It is not there right now. Thanks for the suggestion!
Logged
JD
Administrator
FTP Guru
*****
Posts: 1380


View Profile Email
Re: Slow calculation of file and folder sizes
« Reply #2 on: January 02, 2008, 07:42:29 AM »

I have now added recursive LIST mode support Grin

In developing this, I didn't see a good way to reliably detect when the recursive mode was not supported, so I have instead added an option to use recursive LIST mode on a per Bookmark basis, and for maximum compatibility it is off by default.

Note that for servers that do support this mode, Yummy will take advantage of the speed up for all operations which require fetching the server directory structure - eg, download, sychs, as well as calculate size. There is quite a significant speed up for all these operations.
Logged
spacific
Full Member
***
Posts: 185


View Profile
Re: Slow calculation of file and folder sizes
« Reply #3 on: January 02, 2008, 05:07:42 PM »

How will we know if we try LIST and it is not supported?  Will a message appear or will we just get nothing?  Or will Yummy realize it isn't getting a response and then default to recursively fetching directory listings? -- but if that were the case you could have it ON by default.

Thanks.
Logged
JD
Administrator
FTP Guru
*****
Posts: 1380


View Profile Email
Re: Slow calculation of file and folder sizes
« Reply #4 on: January 02, 2008, 06:27:31 PM »

The response when a server does not support recursive LIST mode is undefined, therefore I could not make it automatic. I saw a wide variation of behavior. Some just ignored it, others gave no listing data at all. None sent an error back, but I would imagine that should be possible too. It seems too vague for me to add anything intelligent.

If your server supports the recursive LIST mode, you will see in the transcript that Yummy issues the command LIST -R and the server will respond with a hierarchal listing of the entire directory structure. Unix based FTP servers should support it as it's standard command line syntax. Some Windows FTP servers support it, for example Serv-U. I guess it's a case of suck it and see Smiley

Also, this is only supported by FTP, not SFTP.
Logged
spacific
Full Member
***
Posts: 185


View Profile
Re: Slow calculation of file and folder sizes
« Reply #5 on: January 02, 2008, 07:15:29 PM »

Thanks, very helpful.

J
Logged
Pages: [1] Print 
« previous next »
Jump to: