@flowscripter/io-plugin-filesystem
    Preparing search index...

    Class FilesystemIOProvider

    Local filesystem source/sink provider. All paths are resolved and sandboxed against rootPath via resolvePath - a path that would escape the root is rejected rather than followed. rootPath === "" means "no restriction" (see resolvePath) - preserved here rather than eagerly resolved, since resolve("") would otherwise collapse it to cwd before resolvePath ever sees the sentinel.

    Implements

    • IOProvider
    Index
    kind: Js = ChunkKind.Js

    The single chunk kind this provider natively produces/consumes.

    rootPath: string
    • Returns Promise<void>

    • Self-reported direct-transfer eligibility - the provider owns what "same" means for its backend (e.g. same mount for filesystem, same bucket+region+credentials for object storage).

      Parameters

      • other: IOProvider

      Returns boolean

    • Parameters

      • path: string

      Returns Promise<void>

    • Parameters

      • sourcePath: string
      • destPath: string

      Returns Promise<void>

    • Parameters

      • sourcePath: string
      • destPath: string

      Returns Promise<void>

    • Parameters

      • path: string

      Returns AsyncIterable<Part<ChunkKind>>

    • Parameters

      • path: string

      Returns { write(parts: AsyncIterable<Part<ChunkKind>>): Promise<void> }

    • Parameters

      • path: string

      Returns Promise<ItemProperties>

    • Parameters

      • path: string

      Returns Promise<StreamHandle<ChunkKind>>

    • Parameters

      • path: string

      Returns Promise<StreamHandle<ChunkKind>>

    • Parameters

      • path: string
      • Optionaloptions: { recursive?: boolean; regex?: RegExp }

      Returns AsyncIterable<{ path: string; properties: ItemProperties }>

    • Parameters

      • path: string
      • properties: Partial<Record<string, unknown>>

      Returns Promise<void>