UNPKG

fs-nextra

Version:

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

19 lines (18 loc) 788 B
/** * Creates a hard file link, making all folders required to satisfy the given file path. * @function ensureLink * @memberof fsn/nextra * @param source The source path of the file * @param destination The destination path of the file * @param atomic Whether the operation should run atomically */ /** * Creates a hard file link, making all folders required to satisfy the given file path. * @function createLink * @memberof fsn/nextra * @param source The source path of the file * @param destination The destination path of the file * @param atomic Whether the operation should run atomically */ export declare function createLink(source: string, destination: string, atomic?: boolean): Promise<void>; export declare const ensureLink: typeof createLink;