{"version":"2.1.285","anchor":"ignore-rule-matching-appends-slash-for-directories","canonical_anchor":"ignore-rule-matching-appends-slash-for-directories","heading":"Folder-only ignore rules like dir\/ now match the folder itself","tier":"notice","area":"Elsewhere","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285\/e\/ignore-rule-matching-appends-slash-for-directories","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285","markdown":"### Folder-only ignore rules like `dir\/` now match the folder itself\n\nIgnore rules written for folders, such as `dir\/`, now match that folder, because Claude Code checks folders with a trailing slash\n\n**Unclear.** It is not clear which feature uses these ignore rules.\n\n**What**\n\nIgnore rules follow the style of a `.gitignore` file, where a pattern ending in a slash, such as `dir\/`, only means a folder. Claude Code used to check a path against these rules without the slash, so such a rule could miss the folder itself. When the path is a folder, Claude Code now checks it as `path\/`, so folder-only rules match.\n\n**Why**\n\nRules written in the usual `.gitignore` way for folders now apply to those folders as you would expect, which matters where these rules decide what Claude may touch.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}