disk space, disk space free
Returns the total resp. free space of the specified drive. It also works for network drives.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
Opt. 1 input |
string | drive or path name Specify a disk drive (e.g. C:\) or a path name (/usr/local, or \\server_name\path_name\...) |
Type | Description |
---|---|
numeral | Size information Disk space / free disk space in bytes |
Invalid path name or nonexisting drive
path[] = select if( system info[operating system] == Windows, "C:\", "/home" );
echo( str( disk space( path[] ), "#,000", local ) );
echo( str( disk space free( path[] ), "#,000", local ) );
510'666'993'664
58'277'801'984