send_files: preserve relative paths to prevent silent overwrites on name collision
Apra Fleet is an open-source MCP server
Brought to you by:
apralabs
Originally created by: kumaakh
send_files currently places files by basename only. If two files in different source directories share a name, the second silently overwrites the first on the member.
Fix: Preserve relative paths on placement, or at minimum warn when a destination file would be overwritten.
Backlog item [#7] from docs/MCP-BACKLOG.md. Low priority.
Originally posted by: kumaakh
Fixed in main: PR [#175] (fix: send_files collision detection + stale task cleanup) added pre-flight basename collision detection in
src/tools/send-files.ts. When two source files share the same basename and would overwrite each other at the destination,send_filesnow returns an error listing the colliding paths before any transfer occurs. This addresses the 'at minimum warn' requirement from the issue. Full relative-path preservation (the ideal fix) remains a future enhancement if needed.Related
Tickets:
#175Ticket changed by: kumaakh