fs.size

fs.size

fs.size

Function

Read file or directory metadata size.

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns the number of bytes of the underlying metadata.len().

Example

Notes

  • The directory size is determined by operating system metadata and is not equal to the total size of files in the directory.