FairosProviderDriver is the driver for the FairOS provider.

Hierarchy

  • FairosProviderDriver

Implements

Constructors

Properties

Methods

Constructors

Properties

host: any

Methods

  • Parameters

    • name: string
    • mount: Mount

    Returns Promise<any>

  • Delete a file or directory

    Returns

    Returns true if the file or directory was deleted, else false

    Parameters

    • filePath: string

      name of the file or directory

    • mount: Mount

      mount point

    Returns Promise<any>

  • Download a file

    Returns

    Parameters

    • id: string

      id of the file

    • mount: Mount

      mount to download the file from

    Returns Promise<any>

  • Verify if a file exists

    Returns

    Returns true if the file exists, else false

    Parameters

    • path: string

      path to the file

    • mount: Mount

      mount to check

    Returns Promise<boolean>

  • Upload a file

    Parameters

    • file: File

      file to upload

    • mount: Mount

      mount to upload to

    • options: {
          overwrite: boolean;
          path: string;
      } = ...

      options

      • overwrite: boolean
      • path: string

    Returns Promise<any>

Generated using TypeDoc