UNPKG

fs-nextra

Version:

Node.js fs next-gen extra (nextra) methods.

19 lines (18 loc) 820 B
/** * Creates an file copy, making all folders required to satisfy the given file path. * @function ensureFileCopy * @memberof fsn/nextra * @param source The path to the file you want to copy * @param destination The path to the file destination * @param atomic Whether the operation should run atomically */ /** * Creates an file copy, making all folders required to satisfy the given file path. * @function createFileCopy * @memberof fsn/nextra * @param source The path to the file you want to copy * @param destination The path to the file destination * @param atomic Whether the operation should run atomically */ export declare function createFileCopy(source: string, destination: string, atomic?: boolean): Promise<void>; export declare const ensureFileCopy: typeof createFileCopy;