Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/fs/copy.ts>CopyOptions

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface CopyOptions
import { type CopyOptions } from "https://deno.land/std@0.218.0/fs/copy.ts";

Options for copy and copySync.

Properties

optional
overwrite: boolean = false

overwrite existing file or directory.

optional
preserveTimestamps: boolean = false

When true, will set last modification and access times to the ones of the original source files. When false, timestamp behavior is OS-dependent.