[Gambas-user] Size of Directorys....

Rob sourceforge-raindog2 at ...94...
Wed Aug 20 17:28:46 CEST 2003


On Tuesday 19 August 2003 18:41, mephisto75 at ...20... wrote:
> Does somebody know an easy way to find out the size of directorys ?
> Or do I have to read out  every file in the directory and its subdirectorys
> an add the sizes, that would be ugly.

It'd be the right way to do it, though.  On the other hand, the fast way to do 
it would be to shell out to "du -sck" to get the result in kilobytes (-scm 
for megabytes, I think -scb for bytes.)  You can get the output in the 
Process_Write event.

Rob






More information about the User mailing list