getAvailableDiskSpace

fnulong getAvailableDiskSpace(scope const(char)[] path) @safe

Returns the available disk space based on a given path. On Windows, path must be a directory; on POSIX systems, it can be a file or directory.

Parameters

pathon Windows, it must be a directory; on POSIX it can be a file or directory

Returns

Available space in bytes

Throws

FileException in case of failure