Skip to content

Commit e114de9

Browse files
phernandezclaude
andcommitted
fix: configure rclone encoding to prevent quoting filenames with spaces
Set rclone encoding to "Slash,InvalidUtf8" to only encode slashes and invalid UTF-8, preventing rclone from wrapping filenames with spaces in single quotes (e.g., "Hello World.md" instead of "'Hello World.md'"). Fixes #406 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 045e931 commit e114de9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/basic_memory/cli/commands/cloud/rclone_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def configure_rclone_remote(
100100
config.set(REMOTE_NAME, "secret_access_key", secret_key)
101101
config.set(REMOTE_NAME, "endpoint", endpoint)
102102
config.set(REMOTE_NAME, "region", region)
103-
103+
# Prevent unnecessary encoding of filenames (only encode slashes and invalid UTF-8)
104+
# This prevents files with spaces like "Hello World.md" from being quoted
105+
config.set(REMOTE_NAME, "encoding", "Slash,InvalidUtf8")
104106
# Save updated config
105107
save_rclone_config(config)
106108

0 commit comments

Comments
 (0)