Hello,
First a big thank you for writing rclone, it is awesome!
I have a question regarding the Seafile backend: apparently it does not support ModTime as per the storage overview
My use case is to sync Veracrypt containers, which are basically files of fixed size which only mtime would change when you change something 'inside' the container file. Currently as the Seafile backend only checks the filesize, changes are not caught.
However, the Seafile API and the current code seem to provide these modification times:
backend/seafile/object.go
// Object describes a seafile object (also commonly called a file)
type Object struct {
fs *Fs // what this object is part of
id string // internal ID of object
remote string // The remote path (full path containing library name if target at root)
pathInLibrary string // Path of the object without the library name
size int64 // size of the object
modTime time.Time // modification time of the object
libraryID string // Needed to download the file
}
github.com /rclone/rclone/blob/master/backend/seafile/webapi.go refers to download .seafile.com/published/web-api/v2.1/file.md#user-content-Get%20File%20Detail
{
"last_modifier_name": "\u8d85\u7ba1",
"uploader_email": "03e7957e09ee43d9b57c9b2b4c741668@ifile.com",
"upload_time": "2018-07-11T05:14:20+08:00",
"name": "1.md",
"permission": "rw",
"uploader_name": "\u8d85\u7ba1",
"uploader_contact_email": "03e7957e09ee43d9b57c9b2b4c741668@ifile.com",
"last_modified": "2018-07-16T15:03:56+08:00",
"mtime": 1531724636,
"starred": false,
"size": 2,
"type": "file",
"id": "86dd07538e51f8d437ecc25d9a48250041fef5a0",
"last_modifier_email": "03e7957e09ee43d9b57c9b2b4c741668@ifile.com",
"last_modifier_contact_email": "03e7957e09ee43d9b57c9b2b4c741668@ifile.com"
}
We can see there are the last_modified and mtime fields
Also rclone lsl returns the modification time:
/tmp/rclone-v1.54.1-linux-arm/rclone lsl seafile-foo:Notes/.sync
482 2021-01-21 09:00:24.000000000 readme.txt
1 2021-01-21 09:00:23.000000000 version.txt
Is it just a matter of adding some missing glue code somewhere? Am I missing something?
- rclone-v1.54.1-linux-arm
- Seafile community edition 7.1.5
Cheers
PS: looks like I can't include links