diff --git a/backend/server/src/FileManager.ts b/backend/server/src/FileManager.ts index 86c003d..0a2f558 100644 --- a/backend/server/src/FileManager.ts +++ b/backend/server/src/FileManager.ts @@ -92,7 +92,11 @@ export class FileManager { // Convert local file path to remote path private getRemoteFileId(localId: string): string { - return `projects/${this.sandboxId}${localId}` + return [ + "projects", + this.sandboxId, + localId.startsWith("/") ? localId : localId, + ].join("/") } // Convert remote file path to local file path