[Gambas-user] Size of a directory

Benoît Minisini g4mba5 at gmail.com
Fri Sep 21 11:26:18 CEST 2018


Le 21/09/2018 à 10:54, Hans Lehmann a écrit :
> Hello,
> 
> how do I determine the size (ilDirSize As Long) of a directory using 
> Gambas?
> 
> With kind regards
> 
> Hans
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 

You can't, because on Unix there is no system call to get the size of a 
directory. And I never understood the reason why they didn't implement that.

You have to browse the directory, and add the size of each file one by 
one. Very slow...

-- 
Benoît Minisini


More information about the User mailing list