Interface IExternalStorageConnectionConnector

Interface for external storage connection connector.

interface IExternalStorageConnectionConnector {
    get(path: string): Promise<IFile>;
    list(path: string, recursive: boolean): Promise<ObjectDescriptor[]>;
    listChanges(): Promise<StorageEvent[]>;
}

Methods

  • Gets a file.

    Parameters

    • path: string

      The path to the file.

    Returns Promise<IFile>

    A promise that resolves with the file.

  • Lists the objects in a folder.

    Parameters

    • path: string

      The path to the folder.

    • recursive: boolean

      Whether to list the objects recursively.

    Returns Promise<ObjectDescriptor[]>

    A promise that resolves with an array of object descriptors.