diskSpace | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the amount of free space on the disk that holds the defaultFolder. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop, server | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: integer Property: freeSize, size, defaultFolder Function: hasMemory, volumes, stackSpace Glossary: download, return value, return, byte Control Structure: function | ||||||
Security | disk | ||||||
Description | Use the diskSpace function to determine whether there is enough free space to complete an action (such as downloading data). The value returned by the diskSpace function is in bytes. To convert to kilobytes (K), divide the return value by 1024. To convert to megabytes (M), divide by 1024^2. To convert to gigabytes (G), divide by 1024^3:
|