[Gambas-user] Size of Directorys....
Marco Bauer
elentirmo at ...20...
Wed Aug 20 12:21:22 CEST 2003
Am Mittwoch, 20. August 2003 00:41 schrieb mephisto75 at ...20...:
> 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.
>
> Thanx
Hi,
the command 'du -s' gives you the size of the current directory with all of
its subdirectories. You could call EXEC ["du", "-s"] FOR READ and evaluate
the output via Process_Write.
Hope this helps.
Marco
More information about the User
mailing list