UNPKG

@loom-io/node-filesystem-adapter

Version:

A file system wrapper for Node.js and Bun

13 lines (12 loc) 525 B
import { PathLike } from "node:fs"; import { type LoomSourceAdapter } from "@loom-io/core"; import { Adapter } from "../core/adapter.js"; import { Directory, LoomFile } from "@loom-io/core/internal"; export declare class FilesystemAdapter implements LoomSourceAdapter { protected adapter: Adapter; protected rootdir: PathLike; constructor(rootdir?: PathLike); file(path: string): LoomFile; dir(path: string): Directory; getFullPath(dirOrFile: Directory | LoomFile, ignoreAdapter?: boolean): string; }