[#BloombergLP-bdls-FilesystemUtil-getFileSize-07] = 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 specified by the specified open `descriptor`, 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. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdls/FilesystemUtil/Offset.adoc[Offset] getFileSize(xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] descriptor); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#