Function Directory.getSpaceLeft

On UNIX desktop systems, returns the available space on the current directory's disk. On other platforms, this information is not available and the method returns 0 or -1.

long getSpaceLeft() nothrow @nogc;