Disk space function

Dar Scott dsc at swcp.com
Sun Jun 1 16:23:02 EDT 2003


On Sunday, June 1, 2003, at 06:08 AM, Scott Kinder wrote:

> I'm trying to make a 'digital tape recorder' and it would be ideal to 
> let people know in an updated dialog:
>
> Current file size of your recording is: 2mb
> Space left on your drive is: 20gb
>
> Looks like you might have to use the detailed directories and just add 
> everything up.  Has anyone worked out anything better?

Target platforms?  You might have to use platform specific shell 
commands.  You might not need to execute the shell that often if you 
estimate the space left by subtracting out the growth of the recording.

(I thing MB and GB, that is, capitalized, reads better.)

Dar Scott




More information about the use-livecode mailing list