-
Notifications
You must be signed in to change notification settings - Fork 421
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
Preserve timestamp #863
Comments
‘All actions’ is vague to me. Please list all the operations you want to keep track of. And should it be the default behavior? Should the previous behavior be preserved (e.g., by adding a different configuration option)? It would be very useful if you could provide some implementations of other file managers for me to use as a reference. |
Copy file should be like It should be default. Previous behavior should not be there, you would never expect moving file to change anything. |
Thanks for the explanation, but why should I just tested locally, and the default behavior of |
Copy in interactive file manager should be considered like clone or mirror where you expect everything to be identical to source files. Other file manager do it like that. I tested in ranger. It is also safer because some things depend on modified times on files and file attributes. |
Sounds good to me. Does anyone want to give it a try? yazi/yazi-shared/src/fs/fns.rs Line 37 in e7dc971
|
I cannot seem reproduce the issue on MacOS running ARM. |
Hi, I tested it in my Linux VM, and it did change the file's timestamp:
I think this should be the different behavior exhibited by Rust's std::fs::copy() on different platforms. |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
Please describe the problem you're trying to solve
y
andx
changes file attribute like timestamp afterp
.Would you be willing to contribute this feature?
Describe the solution you'd like
All actions in yazi should always keep all original attribute.
Additional context
No response
The text was updated successfully, but these errors were encountered: