Skip to content

v1.5.0 — First-class rename & move

Choose a tag to compare

@ebogdum ebogdum released this 05 Jun 13:42
· 28 commits to main since this release

First-class rename and move

PATCH /v1/files/{path} adds rename and move as first-class operations, resolving #3. Previously this required a download → re-upload → delete sequence.

Two operations, selected by the JSON body (exactly one required):

  • Rename — {"name": "new-name.txt"} — change the name only; same folder, backend, instance.
  • Move — {"destination": "/new/path", "backend": "...", "instance": "...", "overwrite": false, "create_parents": false} — relocate to a different folder and, optionally, a different backend or instance.

Both files and directories (whole subtree) are supported. Each operation updates the metadata store and relocates the underlying bytes together (bytes first, so a failed byte move leaves the source intact). Same-instance local FS renames are atomic.

Coverage

  • Metadata stores: SQLite, PostgreSQL, Redis, Raft (atomic subtree re-key).
  • Backends: local FS (atomic rename + cross-device fallback), S3 (server-side copy + delete), internal proxy.
  • Erasure-coded files renamed by re-keying shard metadata (no shard movement).
  • Cross-server aware: requests are proxied to the owning/target node.

v1 limitations

  • Re-tiering a file to/from the erasure backend returns 400.
  • Moving a directory across backends or instances returns 400 (files fully supported; same-backend directory moves supported).

Notes

  • API version bumped to 1.5.0; README, API reference, and OpenAPI/Swagger updated.
  • Prebuilt binaries: linux, darwin, freebsd, openbsd (amd64/arm64) and windows (amd64). NetBSD is not built (the pure-Go SQLite driver's libc does not support NetBSD).