MCPcopy Create free account
hub / github.com/CodeFox-Repo/codefox / getProjectContentPath

Function getProjectContentPath

frontend/src/config/common-path.ts:49–55  ·  view source on GitHub ↗
(
  userId: string,
  projectId: string,
  fileName: string
)

Source from the content-addressed store, hash-verified

47
48// Updated function to get the full path to a specific file within the 'content' directory
49export const getProjectContentPath = (
50 userId: string,
51 projectId: string,
52 fileName: string
53): string => {
54 return path.join(getProjectContentDir(userId, projectId), fileName);
55};
56
57// Helper function to hash user IDs for unique cache directories
58const hashUserId = (userId: string): string => {

Callers 3

writeProjectContentFunction · 0.85
readProjectContentFunction · 0.85
deleteProjectContentFunction · 0.85

Calls 1

getProjectContentDirFunction · 0.85

Tested by

no test coverage detected