Stone.js API
    Preparing search index...

    Local-disk implementation of the agnostic FileSystem contract.

    All operations are async (non-blocking) and CONFINED to the configured root directory: any path that resolves outside the root is rejected, so a caller-supplied path such as ../../etc/passwd can never escape the disk. This mirrors how an object store confines access to a bucket, which is exactly what makes a future S3FileSystem a drop-in for the same interface.

    Implements

    Index
    name: string

    A human-readable disk name (e.g. 'local', 's3'), used by the StorageManager.

    • Parameters

      • source: string
      • destination: string

      Returns Promise<void>

    • Parameters

      • path: string

      Returns Promise<boolean>

    • Parameters

      • path: string

      Returns Promise<boolean>

    • Parameters

      • directory: string = ''
      • recursive: boolean = false

      Returns Promise<string[]>

    • Parameters

      • path: string

      Returns Promise<Buffer<ArrayBufferLike>>

    • Parameters

      • path: string
      • encoding: BufferEncoding = 'utf-8'

      Returns Promise<string>

    • Parameters

      • path: string

      Returns Promise<number>

    • Parameters

      • path: string

      Returns Promise<void>

    • Parameters

      • path: string

      Returns Promise<string>

    • Parameters

      • source: string
      • destination: string

      Returns Promise<void>

    • Parameters

      • path: string
      • content: string | Buffer<ArrayBufferLike>

      Returns Promise<void>

    • Parameters

      • path: string

      Returns Promise<Readable>

    • Parameters

      • path: string

      Returns Promise<number>

    • Parameters

      • path: string

      Returns Promise<string>

    • Parameters

      • path: string
      • stream: Readable

      Returns Promise<void>