Menu

#70 send_files: preserve relative paths to prevent silent overwrites on name collision

closed
nobody
None
2026-04-23
2026-04-05
Anonymous
No

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.

Related

Tickets: #169
Tickets: #7

Discussion

  • Anonymous

    Anonymous - 2026-04-23

    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_files now 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: #175

  • Anonymous

    Anonymous - 2026-04-23

    Ticket changed by: kumaakh

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB