Skip to main content

project_dir_for

Function project_dir_for 

Source
pub fn project_dir_for(cwd: &Path, home: &Path) -> PathBuf
Expand description

Resolve the directory Claude Code uses for transcripts of cwd.

Claude Code substitutes path separators with - and strips leading slashes. e.g. /Users/long/Work/spool~/.claude/projects/-Users-long-Work-spool/.