Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Functions
f
copy(): Promise<void>
src: string | URL,
dest: string | URL,
options?: CopyOptions
Copy a file or directory. The directory can have contents. Like cp -r.
Requires the --allow-read and --allow-write flag.
f
copySync(): void
src: string | URL,
dest: string | URL,
options?: CopyOptions
Copy a file or directory. The directory can have contents. Like cp -r.
Requires the --allow-read and --allow-write flag.
Interfaces
I
- overwrite: boolean
overwrite existing file or directory.
- preserveTimestamps: boolean
When
true, will set last modification and access times to the ones of the original source files. Whenfalse, timestamp behavior is OS-dependent.