( userId: string, projectId: string, fileName: string, content: string )
| 61 | |
| 62 | // Utility Functions for File Operations |
| 63 | export 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 | |
| 73 | export const readProjectContent = async ( |
| 74 | userId: string, |
nothing calls this directly
no test coverage detected