UNPKG

@paroicms/internal-server-lib

Version:

Common utilitaries for the paroicms server.

8 lines (7 loc) 338 B
import type { Stats } from "node:fs"; export declare function pathExists(path: string): Promise<boolean>; /** * @returns undefined if the file does not exist or can't be accessed */ export declare function fileStatsOrUndef(path: string): Promise<Stats | undefined>; export declare function ensureDirectory(path: string): Promise<void>;