Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileSystemAccess

Hierarchy

  • FileSystemAccess

Index

Methods

deleteFile

  • deleteFile(path: string, onError?: function): any

deleteFolder

  • deleteFolder(path: string, onError?: function): any

eachEntity

  • eachEntity(path: string, onEntity: function, onError?: function): any
  • Parameters

    • path: string
    • onEntity: function
        • (entity: object): boolean
        • Parameters

          • entity: object
            • extension: string
            • name: string
            • path: string

          Returns boolean

    • Optional onError: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    Returns any

emptyFolder

  • emptyFolder(path: string, onError?: function): void

fileExists

  • fileExists(path: string): boolean

folderExists

  • folderExists(path: string): boolean

getCurrentAppPath

  • getCurrentAppPath(): string

getDocumentsFolderPath

  • getDocumentsFolderPath(): string

getEntities

  • getEntities(path: string, onError?: function): Array<object>

getFile

  • getFile(path: string, onError?: function): object
  • Parameters

    • path: string
    • Optional onError: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    Returns object

    • extension: string
    • name: string
    • path: string

getFileExtension

  • getFileExtension(path: string): string

getFileSize

  • getFileSize(path: string): number

getFolder

  • getFolder(path: string, onError?: function): object
  • Parameters

    • path: string
    • Optional onError: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    Returns object

    • name: string
    • path: string

getLastModified

  • getLastModified(path: string): Date

getLogicalRootPath

  • getLogicalRootPath(): string

getParent

  • getParent(path: string, onError?: function): object
  • Parameters

    • path: string
    • Optional onError: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    Returns object

    • name: string
    • path: string

getPathSeparator

  • getPathSeparator(): string

getTempFolderPath

  • getTempFolderPath(): string

joinPath

  • joinPath(left: string, right: string): string

joinPaths

  • joinPaths(paths: string[]): string

normalizePath

  • normalizePath(path: string): string

read

  • read(path: string, onError?: function): any

readAsync

  • readAsync(path: string): Promise<any>

readSync

  • readSync(path: string, onError?: function): any

readText

  • readText(path: string, onError?: function, encoding?: any): string

readTextAsync

  • readTextAsync(path: string, encoding?: any): Promise<string>

readTextSync

  • readTextSync(path: string, onError?: function, encoding?: any): string

rename

  • rename(path: string, newPath: string, onError?: function): void

write

  • write(path: string, content: any, onError?: function): any

writeAsync

  • writeAsync(path: string, content: any): Promise<void>

writeSync

  • writeSync(path: string, content: any, onError?: function): any

writeText

  • writeText(path: string, content: string, onError?: function, encoding?: any): any
  • Parameters

    • path: string
    • content: string
    • Optional onError: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    • Optional encoding: any

    Returns any

writeTextAsync

  • writeTextAsync(path: string, content: string, encoding?: any): Promise<void>

writeTextSync

  • writeTextSync(path: string, content: string, onError?: function, encoding?: any): any
  • Parameters

    • path: string
    • content: string
    • Optional onError: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    • Optional encoding: any

    Returns any

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method