fix: correctly generate remoteFileId for paths without a leading slash
This commit is contained in:
parent
6a60f4d286
commit
093a4e9758
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user