Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalFilesystem

A Filesystem implementation that stores files on the local disk.

todo

walk

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly baseConfig

Methods

close

getMetadata

getPath

getPrefix

  • getPrefix(): string

getStoreFileAsStream

  • getStoreFileAsStream(args: { storePath: string }): ReadStream | Promise<ReadStream>

getStoreFileAsTemp

  • getStoreFileAsTemp(__namedParameters: { storePath: string }): Promise<UniversalPath>

list

  • list(storePath: string): Promise<Collection<string>>

Protected metadataPath

  • metadataPath(storePath: string): string

mkdir

  • mkdir(args: { storePath: string }): Promise<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

  • open(): Promise<void>

putLocalFile

  • putLocalFile(__namedParameters: { localPath: string; mimeType?: string; storePath: string; tag?: string; tags?: string[] }): Promise<void>
  • Parameters

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

    Returns Promise<void>

putStoreFileAsStream

  • putStoreFileAsStream(args: { storePath: string }): WriteStream | Promise<WriteStream>

remove

  • remove(args: { recursive?: boolean; storePath: string }): Promise<void>

setMetadata

  • setMetadata(storePath: string, meta: FileMetadata): Promise<void>

stat

  • stat(args: { storePath: string }): Promise<Stat>

Protected storePath

  • storePath(storePath: string): string

Protected tempName

  • tempName(): string

touch

  • touch(args: { storePath: string }): Promise<void>
Extollo Logo

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

Extollo is a free & libre application framework in TypeScript.