directory size
Returns the total number of bytes used by all files specified in the directory, including all their subdirectories. Hidden and inaccessible files will not be counted.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
Opt. 1 input |
string | path and directory name Specify the directory name (subdirectory in working directory) or path name. Do not use wildcards. |
Type | Description |
---|---|
numeral | Total size Size of all files identified, summed, unit is bytes. |
Specified directory not found or not existing
// Function 'string' adds thousand separators to make numbers readable
echo( str( directory size( system info[bin directory] ), "#,000", local ) );
echo( str( directory size( "Images" ), "#,000", local ) );
5'139'624
24'923'289