-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Time preservation invalid: when the time and year of the file is 2275, the time of the destination cannot be modified #93
Comments
Windows? Please take a look at this https://github.com/otiai10/copy/blob/main/preserve_ltimes_x.go |
it is invalid in linux. |
@otiai10 Note: |
when you copy bbb.txt to another directory using "github.com/otiai10/copy" in Linux ,you will find bbb.txt time is not correct. |
Could you please describe what you are saying just more little bit?
|
|
As far as I understand, I recognize this problem as follows: What you doSetup touch -t 227506062145 your-dir/top.txt Copy cp.Copy("your-dir", "your-copy", cp.Options{
PreserveTimes: true,
}) Check ls -la your-copy/top.txt What you want
Year should be 2262 What you see
|
[[CC]YY]MMDDhhmm[.SS]
|
|
That can't be right, where did you get this from? A 64 bit integer should be able to represent dates insanely far into the future (like in the millions of years), not just a mere 68 years. |
I remember that was from ChatGPT, thus I kept it as blockquote and I don't trust it as well. |
code
File system :exfat32
Create a new file in /Volume1/souce : touch -t 227506062145 top.txt
Destination file time
Total inconsistency between source and destination times
The text was updated successfully, but these errors were encountered: