Files
basicmachines-co-basic-memory/tests/cli/cloud
claude[bot] b70cba82ff fix(cloud): emit both - pattern and - pattern/** in rclone filter conversion
Previously `convert_bmignore_to_rclone_filters()` had two bugs:

1. Patterns without wildcards (e.g. `config.json`) were emitted as
   `- config.json/**`, which only excludes contents of a *directory*
   named config.json — the actual file passed through unfiltered.

2. Wildcard-only patterns (e.g. `.*`) were emitted as `- .*` alone.
   rclone globs treat `*` as not crossing `/`, so hidden directory
   contents (e.g. `.obsidian/workspace.json`) were not excluded.

Fix: always emit both `- pattern` (match the item itself) and
`- pattern/**` (match directory contents recursively) for every
gitignore line, unless it already ends with `/**`.

Closes #819

Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2026-05-14 00:05:59 +00:00
..