diff options
Diffstat (limited to 'fs/copy.ts')
-rw-r--r-- | fs/copy.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/fs/copy.ts b/fs/copy.ts index b51106e3a..c3c97d1ba 100644 --- a/fs/copy.ts +++ b/fs/copy.ts @@ -9,7 +9,8 @@ export interface CopyOptions { */ overwrite?: boolean; /** - * When `true`, will set last modification and access times to the ones of the original source files. + * When `true`, will set last modification and access times to the ones of the + * original source files. * When `false`, timestamp behavior is OS-dependent. * Default is `false`. */ @@ -188,9 +189,10 @@ function copyDirSync(src: string, dest: string, options: CopyOptions): void { /** * Copy a file or directory. The directory can have contents. Like `cp -r`. * @param src the file/directory path. - * Note that if `src` is a directory it will copy everything inside of this directory, - * not the entire directory itself - * @param dest the destination path. Note that if `src` is a file, `dest` cannot be a directory + * Note that if `src` is a directory it will copy everything inside + * of this directory, not the entire directory itself + * @param dest the destination path. Note that if `src` is a file, `dest` cannot + * be a directory * @param options */ export async function copy( @@ -225,9 +227,10 @@ export async function copy( /** * Copy a file or directory. The directory can have contents. Like `cp -r`. * @param src the file/directory path. - * Note that if `src` is a directory it will copy everything inside of this directory, - * not the entire directory itself - * @param dest the destination path. Note that if `src` is a file, `dest` cannot be a directory + * Note that if `src` is a directory it will copy everything inside + * of this directory, not the entire directory itself + * @param dest the destination path. Note that if `src` is a file, `dest` cannot + * be a directory * @param options */ export function copySync( |