[#BloombergLP-bdls-FilesystemUtil-getFileSize-0b] = 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 the specified `path`, or a negative value if an error occurs. Note that the size of a symbolic link is the size of the file or directory to which it points. The parameterized `STRING_TYPE` must be one of `bsl::string`, `std::string`, `std::pmr::string` (if supported), `bsl::string_view`, or `bslstl::StringRef`. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdls/FilesystemUtil/Offset.adoc[Offset] getFileSize(char const* path); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#