UNPKG

@thi.ng/file-io

Version:

Assorted file I/O utils (with logging support) for NodeJS/Bun

21 lines 678 B
import type { ILogger } from "@thi.ng/logger"; /** * Deletes file at given path. If `dryRun` is true (default: false), the file * WON'T be deleted, however if a `logger` is provided then at least a dry-run * log message will be emitted. * * @param path * @param logger * @param dryRun */ export declare const deleteFile: (path: string, logger?: ILogger, dryRun?: boolean) => void; /** * Like {@link deleteFile}, but attempts to recursively remove an entire * directory at given path. * * @param path * @param logger * @param dryRun */ export declare const deleteDir: (path: string, logger?: ILogger, dryRun?: boolean) => void; //# sourceMappingURL=delete.d.ts.map