Seeing requests for a disk space function on the mailing list a few times, I decided to write an external. ExtFreeDiskSpace is a LiveCode external for iOS, which reads the total and free disk space and returns these values as integers measured in kilobytes.
You could this this for example:
Code: Select all
fuction freeDiskSpace24
put 1000^2 into mySq1024
set the numberFormat to "#.00"
put extFreeDiskSpace()/mySq1024 into myGBs
return myGBs && "GB"
end freeDiskSpace24
To access this download, you need to make a donation first (if you haven't done so yet).
Kind regards,
Mark