Commit Graph
16 Commits
Author SHA1 Message Date
Jan Bader 6041cc0a33 fix: locking 2026-10-07 10:37:50 +02:00
Jan Bader c8a16d3f3e fix: case-insensitive ids via query language and caching 2026-09-19 23:47:18 +02:00
Jan Bader 3b91a26b2c feat: mount lazyly 2026-09-19 23:36:10 +02:00
Jan Bader 5e88eaea97 Add export command and shared item tree
Introduces a pure, FUSE-independent item tree (buildItemTree) shared by the mount and export commands. The new export subcommand downloads Docspell search results into a local directory, mirroring the mount's friendly folder/year/month hierarchy without the by-id directory or metadata JSON file, for archival or migration.

- itemtree.go: pure item tree builder shared by mount and export
- mount.go: buildMountTree now converts the pure tree into FUSE nodes, with a shared fileNode per attachment across friendly and by-id paths
- export.go: export command with concurrent downloads, --dry-run, --skip-existing, --concurrency, --query, --limit, --auth-header
- main.go: wires up the export subcommand and its flags
- export_test.go: tests for plan collection, writes, skip-existing, failures, modtime
- README.md: documents the export command
2026-07-21 23:35:03 +02:00
Jan Bader f603bbb8b8 Use flaggy for CLI argument parsing 2026-07-20 20:39:50 +02:00
Jan Bader aaf7be0b90 Rename get-local-path subcommand to get-path 2026-07-20 20:30:36 +02:00
Jan Bader ce1f9290b8 Use mount metadata for path lookups 2026-07-19 23:17:38 +02:00
Jan Bader 4b96db068a Prefer friendly paths for get-local-path 2026-07-19 22:20:59 +02:00
Jan Bader fc499af504 Rename project to docspell-cli 2026-07-19 20:28:05 +02:00
Jan Bader 9b5a9899b8 Add configurable mount query 2026-07-19 19:57:35 +02:00
Jan Bader 7edd1b8d7f Add background mount path helpers 2026-07-19 19:48:49 +02:00
Jan Bader ef8caef37b Shard by-id mount entries 2026-07-13 23:14:21 +02:00
Jan Bader 385ad6adad Add by-id mount directory 2026-07-13 23:12:32 +02:00
Jan Bader 621fbe4913 Fix FUSE attachment sizes and item filenames 2026-07-13 23:07:30 +02:00
Jan Bader d57724151a Fix FUSE reads for unknown attachment sizes 2026-07-13 23:03:41 +02:00
Jan Bader 952d3d8532 Add read-only Docspell FUSE mount 2026-07-13 22:58:59 +02:00