Files
claude-code-viewer/src/server/core/claude-code/functions/computeClaudeProjectFilePath.ts
2025-10-17 20:47:25 +09:00

10 lines
284 B
TypeScript

import path from "node:path";
import { claudeProjectsDirPath } from "../../../lib/config/paths";
export function computeClaudeProjectFilePath(projectPath: string): string {
return path.join(
claudeProjectsDirPath,
projectPath.replace(/\/$/, "").replace(/\//g, "-"),
);
}