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
--local-times mtime/ctime/atime #7484
Comments
Which OS are you using? Windows/Linux or macOS? Can you try this on your target platform?
This will show something like {
"Path": "z.txt",
"Name": "z.txt",
"Size": 270,
"MimeType": "text/plain; charset=utf-8",
"ModTime": "2023-05-11T17:54:11.523399602+01:00",
"IsDir": false,
"Metadata": {
"atime": "2023-05-11T17:54:11.523399602+01:00",
"btime": "2023-05-11T17:54:11.523399602+01:00",
"gid": "1000",
"mode": "100664",
"mtime": "2023-05-11T17:54:11.523399602+01:00",
"uid": "1000"
}
} We don't currently read Here is what the
Do you definitely want |
yes. We need it because we are working with union |
Give this a go v1.66.0-beta.7573.b36b0f3d1.fix-7484-local-time-type on branch fix-7484-local-time-type (uploaded in 15-30 mins) --local-time-typeSet what kind of time is returned. Normally rclone does all operations on the mtime or Modification time. If you set this flag then rclone will return the Modified time as whatever If the OS doesn't support returning the time_type specified then rclone
Note that setting the time will still set the modified time so this is Properties:
|
awesome! I tested all the types here on linux and it is fully working. I our case we'll use "atime". Great! |
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.67 It is too big a patch for v1.66.1 |
The associated forum post URL from
https://forum.rclone.org
https://forum.rclone.org/t/min-age-and-max-age-support-for-atime-and-ctime/2122
What problem are you are trying to solve?
We would need use "ctime" on
rclone move
with filters (--max-age --min-age).It appears that rclone only uses "mtime".
This is only needed when moving from local to remote (/local to remote:bucket).
How do you think rclone should be changed to solve that?
create a flag
--local-times mtime/ctime/atime
as @ncw already noted.How to use GitHub
The text was updated successfully, but these errors were encountered: