You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: <return|Returns> the amount of free space on the disk that holds the <defaultFolder>.
Introduced: 1.0
OS: mac,windows,linux
Platforms: desktop,server,web
Security: disk
Example:
the diskSpace
Example:
put the diskSpace div (1024^2) into megabytesAvailable
Example:
if the diskSpace < spaceNeeded then exit mouseUp
Returns: The <diskSpace> <function> <return|returns> an <integer>.
Description:
Use the <diskSpace> <function> to determine whether there is enough free space to complete an action (such as <download|downloading> data).
The value returned by the <diskSpace> <function> is in <byte|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: