BloombergLP::bdls::FilesystemUtil::getAvailableSpace

getAvailableSpace overloads

Synopses

Declared in <bdls_filesystemutil.h>

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

static
Offset
getAvailableSpace(FileDescriptor descriptor);
» more...

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

static
Offset
getAvailableSpace(char const* path);
» more...

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

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

Return Value

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

Parameters

NameDescription
descriptorfile descriptor whose volume's free space is returned
pathfilesystem path whose volume's free space is returned