Example:
auto disk = getDiskFreeSpace("C:\");
writeln("Free space: ", disk[0], " bytes");auto getDiskFreeSpace(string path) @trusted nothrowGets disk free space.
path | Path to the disk (e.g., "C:\"). |
Example:
auto disk = getDiskFreeSpace("C:\");
writeln("Free space: ", disk[0], " bytes");