Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract base-class for remote filesystem implementations.

Hierarchy

Index

Constructors

constructor

Methods

close

Abstract getMetadata

getPath

Abstract getPrefix

  • getPrefix(): string

Abstract getStoreFileAsStream

  • getStoreFileAsStream(args: { storePath: string }): Awaitable<Readable>

Abstract getStoreFileAsTemp

Abstract list

Abstract mkdir

  • mkdir(args: { storePath: string }): Awaitable<void>

Protected normalizeTags

  • normalizeTags(tag?: string, tags?: string[]): string[]
  • Normalize the input tags into a single array of strings. This is useful for implementing the fluent interface for putLocalFile().

    example
    const tags: string[] = this._normalizeTags(args.tag, args.tags)
    

    Parameters

    • Optional tag: string
    • Optional tags: string[]

    Returns string[]

open

Abstract putLocalFile

  • putLocalFile(args: { localPath: string; mimeType?: string; storePath: string; tag?: string; tags?: string[] }): Awaitable<void>
  • Store a file from the local filesystem into the remote filesystem.

    example
    await store.putLocalFile({
        localPath: '/tmp/temp.file',
        storePath: 'my/upload-key/temp.file',
        mimeType: 'application/json',
        tags: ['json', 'user-data'],
    })
    

    Parameters

    • args: { localPath: string; mimeType?: string; storePath: string; tag?: string; tags?: string[] }
      • localPath: string
      • Optional mimeType?: string
      • storePath: string
      • Optional tag?: string
      • Optional tags?: string[]

    Returns Awaitable<void>

Abstract putStoreFileAsStream

  • putStoreFileAsStream(args: { storePath: string }): Awaitable<Writable>

Abstract remove

  • remove(args: { recursive?: boolean; storePath: string }): Awaitable<void>
  • Remove the given resource(s) from the remote filesystem.

    Parameters

    • args: { recursive?: boolean; storePath: string }
      • Optional recursive?: boolean
      • storePath: string

    Returns Awaitable<void>

Abstract setMetadata

Abstract stat

Protected tempName

  • tempName(): string

Abstract touch

  • touch(args: { storePath: string }): Awaitable<void>
  • If the file does not exist in the remote filesystem, create it. If it does exist, update the modify timestamps.

    Parameters

    • args: { storePath: string }
      • storePath: string

    Returns Awaitable<void>

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.