Return the size, in bytes, of the file or directory with descriptor.

Synopsis

Declared in <bdls_filesystemutil.h>

static
Offset
getFileSize(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

Name

Description

descriptor

file descriptor of the file or directory

Created with MrDocs