SizeReporter that is used to calculate sizes of resources for a file based system.

Hierarchy

  • FileSizeReporter

Implements

Constructors

Properties

fileIdentifierMapper: FileIdentifierMapper
ignoreFolders: RegExp[]
rootFilePath: string

Methods

  • Get the total size of a resource and its children if present

    Parameters

    • fileLocation: string

      the resource of which you want the total size of ( on disk )

    Returns Promise<number>

    a number specifying how many bytes are used by the resource