How to get the total size of a given folder...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Use dir.  A sequences of sequences will be returned.  Each element
describes a directory entry.

for i = 1 to directory do -- directory = dir()
    size = size+directory[i][3] -- where size was initialized to 0
end for

For each entry, find('d',directory[i]).  If not zero, then change to each
sub and do it recursively.  There are a few kinks, but this should get you
started.  Its actually not hard.

Alan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu