deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

fs: `copy` with `{ preserveTimestamps: true }` does not update the timestamps of symlinks

Open kt3k opened this issue 1 year ago • 2 comments

Deno doesn't have lutime API and the timestamp of symlink is not updated.

kt3k avatar Jun 19 '24 07:06 kt3k

Can you please provide a minimal reproducible code snippet?

iuioiua avatar Jun 26 '24 02:06 iuioiua

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

kt3k avatar Jun 26 '24 03:06 kt3k