getFreeFolderSize()
The function returns the free bytes of the specified path (the remaining drive size is checked).
Synopsis
ulong getFreeFolderSize(const string path = PROJ);
Parameters
Parameter | Description |
---|---|
path | The path whose free bytes are returned. If you do not use the default, specify the path as follows: getFreeFolderSize("C:\\TMP"); |
Return value
Returns the free bytes of the specified path.
Description
Returns the free bytes of the specified path (the remaining drive size is checked).
Important: Only kilobytes are evaluated (without decimal places).
The kilobytes are converted into bytes.
The project medium is used by default.
Returns an maxULONG() if an error occurs (e.g. if a Docker is not supported.)
Note: Due to limitations, this function cannot guarantee that
sufficient disk space is available. However, the function is most accurate when the
copies are checked for the same drive and the same compression status.
main(mapping event)
{
ulong foldSize;
foldSize = getFreeFolderSize();
DebugN(foldSize);
}
Assignment
Availability
UI