Files
rclone/docs/data/backends/seafile.yaml
Daniel Brunthaler c7c1c401c4 seafile: keep modification times on upload with Seafile 12.0.4+
Before this change the Seafile backend reported that it doesn't support
modification times, so a file uploaded by rclone got the time of the
upload as its modification time and rclone compared files by size only.
A file which changed without changing its size was not seen as changed
by sync or bisync - in both directions.

Since Seafile server 12.0.4 the upload API reads an optional
last_modify field (RFC 3339) and uses it as the modification time of the
uploaded file (haiwen/seafile-server#666). rclone now sends this field
when the server is 12.0.4 or newer and reports a precision of 1 second
there. The time still can't be changed without uploading the file again,
so SetModTime keeps returning fs.ErrorCantSetModTime and rclone uploads
the file again when only the time differs. Older servers behave as
before.

Tested against Seafile Server CE 13.0.28 (docker image): a file uploaded
with rclone now lists with its original modification time (to the
second), and bisync picks up same-size changes on both sides. The
backend integration tests give the same results with and without this
change (the existing failures are unrelated to modification times), and
the modification time tests (ObjectModTime, FsPrecision) pass.

The precision in docs/data/backends/seafile.yaml is updated to 1s, as
reported by the current Seafile docker image.

Fixes #8337
2026-11-11 09:38:51 +00:00

29 lines
407 B
YAML

backend: seafile
name: Seafile
tier: Tier 3
maintainers: Core
features_score: 3
integration_tests: Passing
data_integrity: Other
performance: Medium
adoption: Some use
docs: Basic
security: High
virtual: false
remote: 'TestSeafile:'
features:
- About
- CanHaveEmptyDirectories
- CleanUp
- Copy
- DirMove
- ListR
- Move
- PublicLink
- Purge
- PutStream
- Shutdown
- UserInfo
hashes: []
precision: 1000000000