Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kt3k opened this issue Jun 19, 2024 · 2 comments
Labels
bug Something isn't working fs upstream Changes upstream are required to solve these issues

Comments

@kt3k
Copy link
Member

kt3k commented Jun 19, 2024

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

@kt3k kt3k changed the title fs: copy with { preserveTimestamp: true } does not update the timestamp of symlinks fs: copy with { preserveTimestamps: true } does not update the timestamps of symlinks Jun 19, 2024
@iuioiua iuioiua closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
@iuioiua iuioiua reopened this Jun 26, 2024
@iuioiua iuioiua added bug Something isn't working fs upstream Changes upstream are required to solve these issues labels Jun 26, 2024
@iuioiua
Copy link
Collaborator

iuioiua commented Jun 26, 2024

Can you please provide a minimal reproducible code snippet?

@kt3k
Copy link
Member Author

kt3k commented Jun 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fs upstream Changes upstream are required to solve these issues
Projects
None yet
Development

No branches or pull requests

2 participants