[#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 with `descriptor`. == 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); ---- == Description 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. == Return Value the size in bytes, or a negative value if an error occurs == Parameters [cols="1,4"] |=== | Name| Description | *descriptor* | file descriptor of the file or directory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#