Methods

  • Copies a file specified by its path to a destination path.

    Parameters

    • from: string

      The source path.

    • dest: string

      The destination path.

    Returns Promise<any>

  • Creates a directory.

    Parameters

    • path: string

      The path to be created.

    Returns Promise<any>

  • Deletes a file by its path.

    Parameters

    • path: string

      The path.

    • recursive: boolean

      Whether to delete recursively.

    Returns Promise<any>

  • Enumerates files.

    Parameters

    • path: string

      The path to be searched for.

    • searchPattern: string

      The search pattern.

    • searchInSubDirectories: boolean

      Whether to include searching in sub directories.

    Returns Promise<FileDescription[]>

  • Returns whether a given file or path exists.

    Parameters

    • path: string

      The path to be checked.

    Returns boolean

  • Returns the file description.

    Parameters

    • path: string

      The path to be searched for.

    Returns Promise<FileDescription>

  • Returns the file icon.

    Returns

    The base64 encoded icon or an empty string if no icon was found.

    Parameters

    • fileEndingOrPath: string

      The file ending or path.

    • Optional size: number

      The size of the icon in pixels. Default is 64.

    Returns Promise<string>

  • Returns whether the path reflects a directory.

    Parameters

    • path: string

      The path to be searched for.

    Returns boolean

  • Returns whether the path reflects a file.

    Parameters

    • path: string

      The path to be searched for.

    Returns boolean

  • Moves a file specified by its path to a destination path.

    Parameters

    • from: string

      The source path.

    • dest: string

      The destination path.

    Returns Promise<any>

  • Returns the content of a file specified by its path and returns its content as a byte buffer.

    Parameters

    • filePath: string

      The file path.

    • Optional offset: number

      Byte offset to start reading from.

    • Optional count: number

      Count of bytes to read, when 0 is used the remaining content starting from the offset will be read.

    Returns Promise<Uint8Array>

  • Returns the content of a text file specified by its path.

    Parameters

    • filePath: string

      The file path.

    Returns Promise<string>

  • Writes content to file specified by its path.

    Parameters

    • filePath: string

      The file path.

    • contents: Uint8Array

      The file contets.

    Returns Promise<any>

  • Writes content to a text file specified by its path.

    Parameters

    • filePath: string

      The file path.

    • contents: string

      The file contets.

    Returns Promise<any>

Generated using TypeDoc