Repository navigation
Description
On https://rclone.org/overview/ Jottacloud is listed with ModTime: Yes.
Below, ModTime is defined:
The cloud storage system supports setting modification times on objects. If it does then this enables a using the modification times as part of the sync. If not then only the size will be checked by default, though the MD5SUM can be checked with the --checksum flag.
All cloud storage systems support some kind of date on the object and these will be set when transferring from the cloud storage system.
Now from the code we can see that the backend does not support the operation of setting the modtime-only, but it does store modtimes. So modtimes can be read, and used to compare files during sync, but to update them the file must be re-uploaded.
rclone/backend/jottacloud/jottacloud.go
Lines 1394 to 1410 in 1409b89
| // ModTime returns the modification time of the object | |
| // | |
| // It attempts to read the objects mtime and if that isn't present the | |
| // LastModified returned in the http headers | |
| func (o *Object) ModTime(ctx context.Context) time.Time { | |
| err := o.readMetaData(ctx, false) | |
| if err != nil { | |
| fs.Logf(o, "Failed to read metadata: %v", err) | |
| return time.Now() | |
| } | |
| return o.modTime | |
| } | |
| // SetModTime sets the modification time of the local fs object | |
| func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error { | |
| return fs.ErrorCantSetModTime | |
| } |
Now, does this mean the ModTime: Yes entry wrong, should it be ModTime: No in docs? Please enlighten me! :)
(I've investigated Jottacloud in this case, but I see similar situation for Dropbox, pCloud and Tardigrade).
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Activity
albertony commentedon Sep 26, 2021
This is expected to be clearified with: #1066
jottacloud: implement SetModTime to support modtime-only changes - rc…