File.prototype.subtreeSize()

Return the size of the file’s subtree.

Syntax

file.subtreeSize() uint64

Description

Return the size of the file’s subtree including the file itself. Links are not followed and included.

Examples

Basic example.

Symlinks are not followed.

Subscribe to our newsletter!