BloombergLP::bdls::FilesystemUtil::getFileSize

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

Synopsis

Declared in <bdls_filesystemutil.h>

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

Description

Same as the overload taking const char *.

Return Value

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

Parameters

NameDescription
pathfilesystem path of the file or directory