{"version":"2.1.331","anchor":"add-dir-rejects-paths-where-the-os-drops-the-name-end","canonical_anchor":"add-dir-rejects-paths-where-the-os-drops-the-name-end","heading":"\/add-dir refuses folders whose names the system would cut short","tier":"use","area":"Slash Commands","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/add-dir-rejects-paths-where-the-os-drops-the-name-end","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### `\/add-dir` refuses folders whose names the system would cut short\n\n\/add-dir now refuses a folder if the end of its name would be dropped, such as trailing spaces, since that would point to a different folder\n\n**What**\n\n`\/add-dir` gives Claude access to another folder during your session. Claude Code can now refuse a folder whose name the operating system would quietly shorten, for example a name ending in a space, or a name matching a pattern that Windows handles this way. In that case you see: \"can't be added: the end of its name would be dropped, and that names a different folder. Rename the folder.\"\n\n`\/add-dir` also no longer adds a second time a folder that is already listed through `--add-dir`.\n\n**Why**\n\nThis is a safety fix. It stops Claude from getting access to a different folder from the one you named.\n\n- Area: Slash Commands\n- Names: `\/add-dir`\n- Tier: Use it now\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}