deno_std
deno_std copied to clipboard
fs: `copy` with `{ preserveTimestamps: true }` does not update the timestamps of symlinks
Deno doesn't have lutime API and the timestamp of symlink is not updated.
Can you please provide a minimal reproducible code snippet?
Set up files:
$ touch file.txt
$ ln -s file.txt link.txt
script:
import { copy } from "@std/fs";
copy("link.txt", "link-copy.txt", { preserveTimestamps: true });
$ deno run -A copy.ts