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
-
-
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
-
-
filePath: string
-
Default value binary: boolean = false
-
Default value contentType: string = ""
-
-
Default value disableCache: boolean = undefined
-
Default value withCredentials: boolean = undefined
-
Default value allowException: boolean = false
Returns void
Static getFilesNames
- getFilesNames(filePath: string): string[]
-
Parameters
Returns string[]
Static saveFile
- saveFile(filePath: string, fileData: string | number[]): void
-
Parameters
-
filePath: string
-
fileData: string | number[]
Returns void