BloombergLP::bdls::FilesystemUtil::getFileSize

getFileSize overloads

Synopses

Declared in <bdls_filesystemutil.h>

Return the size, in bytes, of the file or directory with descriptor.

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

Return the size, in bytes, of the file or directory at path.

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

Return the size, in bytes, of the file or directory at path.

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

Return Value

the size in bytes, or a negative value if an error occurs

Parameters

NameDescription
descriptorfile descriptor of the file or directory
pathfilesystem path of the file or directory