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

Function writeProjectContent

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

Source from the content-addressed store, hash-verified

61
62// Utility Functions for File Operations
63export const writeProjectContent = async (
64 userId: string,
65 projectId: string,
66 fileName: string,
67 content: string
68): Promise<void> => {
69 const contentPath = getProjectContentPath(userId, projectId, fileName);
70 await fsPromises.writeFile(contentPath, content, 'utf8');
71};
72
73export const readProjectContent = async (
74 userId: string,

Callers

nothing calls this directly

Calls 1

getProjectContentPathFunction · 0.85

Tested by

no test coverage detected