Hierarchy

  • File

Index

Methods

Static getFile

  • getFile(filePath: string, binary?: boolean, contentType: string, headers: Header[], disableCache?: boolean, withCredentials?: boolean, allowException?: boolean): any
  • Parameters

    • filePath: string
    • Default value binary: boolean = false
    • contentType: string
    • headers: Header[]
    • Default value disableCache: boolean = undefined
    • Default value withCredentials: boolean = undefined
    • Default value allowException: boolean = false

    Returns any

Static getFileAsync

  • getFileAsync(callback: Function, filePath: string, binary?: boolean, contentType?: string, headers: Header[], disableCache?: boolean, withCredentials?: boolean, allowException?: boolean): void
  • Parameters

    • callback: Function
    • filePath: string
    • Default value binary: boolean = false
    • Default value contentType: string = ""
    • headers: Header[]
    • Default value disableCache: boolean = undefined
    • Default value withCredentials: boolean = undefined
    • Default value allowException: boolean = false

    Returns void

Static getFilesNames

  • getFilesNames(filePath: string): string[]
  • Parameters

    • filePath: string

    Returns string[]

Static saveFile

  • saveFile(filePath: string, fileData: string | number[]): void
  • Parameters

    • filePath: string
    • fileData: string | number[]

    Returns void

Generated using TypeDoc