@stryke/fs
Version:
A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.
19 lines (18 loc) • 633 B
TypeScript
import type { CopySyncOptions } from "node:fs";
/**
* Copy files from one location to another
*
* @param from - The source location
* @param to - The destination location
* @param options - The copy options
* @returns An indicator specifying if the copy was successful
*/
export declare const copyFiles: (from: string, to: string, options?: CopySyncOptions) => void;
/**
* Copy a file from one location to another
*
* @param file - The file to copy
* @param to - The destination location
* @returns An indicator specifying if the copy was successful
*/
export declare const copyFile: (file: string, to: string) => void;