UNPKG

deco-cli

Version:

CLI for managing deco.chat apps & projects

40 lines 1.23 kB
/** * Ensure that a directory exists, creating it if necessary (recursive) * Node.js equivalent of Deno's ensureDir */ export declare function ensureDir(dirPath: string): Promise<void>; export interface CopyOptions { overwrite?: boolean; } /** * Copy a file or directory from source to destination * Node.js equivalent of Deno's copy */ export declare function copy(src: string, dest: string, options?: CopyOptions): Promise<void>; export interface WalkEntry { path: string; name: string; isFile: boolean; isDirectory: boolean; isSymlink: boolean; } export interface WalkOptions { maxDepth?: number; includeFiles?: boolean; includeDirs?: boolean; followSymlinks?: boolean; exts?: string[]; match?: RegExp[]; skip?: RegExp[]; } /** * Recursively walk a directory tree and yield entries * Node.js equivalent of Deno's walk */ export declare function walk(root: string, options?: WalkOptions): AsyncGenerator<WalkEntry, void, unknown>; /** * Collect all walk entries into an array * Convenience function for when you need all entries at once */ export declare function walkArray(root: string, options?: WalkOptions): Promise<WalkEntry[]>; //# sourceMappingURL=fs.d.ts.map