A developer is troubleshooting why Claude Code cannot access a file th — Claude Code Certified Professional Practice — Claude Cert Academy

A developer is troubleshooting why Claude Code cannot access a file that exists on disk. They confirm the file path is correct. What should they check next?

Answer: Whether the file is excluded by an ignore pattern in .claude/settings.json or via a deny rule

Claude Code's file access is governed by allow/deny rules in .claude/settings.json (or user/system settings). A deny rule matching the path will block access. .gitignore affects git operations, not Claude Code file access. CLAUDE_FILE_ACCESS is not a real environment variable. Claude Code can read any text file regardless of extension.

Continue to Claude Cert Academy