Skip to main content
The Deno 2 Release Candidate is here
Learn more
interface fs.CopyOptions
import { type fs } from "https://deno.land/x/assert_fs@v0.1.0/deps.ts";
const { CopyOptions } = fs;

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.