BloombergLP::bdls::FilesystemUtil::getAvailableSpace

Return the number of bytes available on the file system of path.

Synopsis

Declared in <bdls_filesystemutil.h>

template<class STRING_TYPE>
static
FilesystemUtil::Offset
getAvailableSpace(STRING_TYPE const& path);

Description

Same as the overload taking const char *.

Return Value

the number of available bytes, or a negative value on error

Parameters

NameDescription
pathfilesystem path whose volume's free space is returned