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

  • Calculate the size of a chunk based on which SizeReporter is being used

    Returns

    the size of the passed chunk as a number

    Parameters

    • chunk: string

      the chunk of which you want the size

    Returns Promise<number>

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

    Returns

    a number specifying how many bytes are used by the resource

    Parameters

    • fileLocation: string

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

    Returns Promise<number>