Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Files

File Helper

Hierarchy

  • Files

Index

Properties

Static ONE_GB

ONE_GB: number = 1073741824

Static ONE_KB

ONE_KB: number = 1024

Static ONE_MB

ONE_MB: number = 1048576

Static ONE_TB

ONE_TB: number = 1099511627776

Methods

Static convertSize

Static getFileName

  • getFileName(path: string): string
  • Parameters

    • path: string

    Returns string

Static getFileType

  • getFileType(path: string): string
  • Parameters

    • path: string

    Returns string

Static isFileType

  • isFileType(path: string, exts: string): boolean
  • Parameters

    • path: string
    • exts: string

    Returns boolean

Static toSizeString

  • toSizeString(byte: string | number, sizeUnit?: FileSizeUnit): string
  • Parameters

    Returns string