[#BloombergLP-bdls-FilesystemUtil-getFileSize-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::getFileSize :relfileprefix: ../../../ :mrdocs: Return the size, in bytes, of the file or directory at `path`. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_TYPE> static xref:BloombergLP/bdls/FilesystemUtil/Offset.adoc[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 [cols="1,4"] |=== | Name| Description | *path* | filesystem path of the file or directory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#