Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • FileSizeReporter

Implements

Index

Constructors

Properties

fileIdentifierMapper: FileIdentifierMapper
ignoreFolders: RegExp[]
rootFilePath: string

Methods

  • calculateChunkSize(chunk: string): Promise<number>
  • getTotalSize(fileLocation: string): Promise<number>
  • 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

  • getUnit(): string