Obtaining the size of a file

John Craig jc at spl21.net
Sun Apr 22 06:35:46 EDT 2007


Maybe I should have said 'another lengthy function call per line'...
I already use a cached file list, but if I hit a folder with thousands 
of files in it and only need the size of 1 file in that particular 
folder, it seems like wasted CPU time to pull the entire folder contents.



Richard Gaskin wrote:
> John Craig wrote:
>> I'm recursing through a (sometimes large) list of files and folders 
>> which can take a while, so I was trying to avoid another function 
>> call per line.
>
> A perfect case for using "the detailed files", so you can rapidly get 
> all of the size info for an entire directory in one call, and the just 
> format the info or calculate it however you need.
>





More information about the use-livecode mailing list