Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
interface fs.CopyOptions
import { type fs } from "https://deno.land/x/assert_fs@v0.1.1/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.