import { copy } from "@std/fs";
const path = `C:/Users/USER/AppData/Local/deno/latest.txt`;
const target = `S:/foo/`;
const CopyOptions = { overwrite: true, preserveTimestamps: false };
try {
await copy(path, target, CopyOptions);
} catch (error) {
console.error(error);
}
import { copy } from "@std/fs";
const path = `C:/Users/USER/AppData/Local/deno/latest.txt`;
const target = `S:/foo/`;
const CopyOptions = { overwrite: true, preserveTimestamps: false };
try {
await copy(path, target, CopyOptions);
} catch (error) {
console.error(error);
}