chore: fix errenous windows paths from previous migration
This commit is contained in:
@@ -62,6 +62,10 @@ export class FilesBackupManager implements FileBackupsDevice {
|
||||
return uuid
|
||||
}
|
||||
|
||||
async joinPaths(...paths: string[]): Promise<string> {
|
||||
return path.join(...paths)
|
||||
}
|
||||
|
||||
public async migrateLegacyFileBackupsToNewStructure(newLocation: string): Promise<void> {
|
||||
const legacyLocation = await this.getLegacyFilesBackupsLocation()
|
||||
if (!legacyLocation) {
|
||||
|
||||
@@ -76,6 +76,7 @@ export class RemoteBridge implements CrossProcessBridge {
|
||||
migrateLegacyFileBackupsToNewStructure: this.migrateLegacyFileBackupsToNewStructure.bind(this),
|
||||
getUserDocumentsDirectory: this.getUserDocumentsDirectory.bind(this),
|
||||
monitorPlaintextBackupsLocationForChanges: this.monitorPlaintextBackupsLocationForChanges.bind(this),
|
||||
joinPaths: this.joinPaths.bind(this),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,6 +236,10 @@ export class RemoteBridge implements CrossProcessBridge {
|
||||
return this.fileBackups.monitorPlaintextBackupsLocationForChanges(backupsDirectory)
|
||||
}
|
||||
|
||||
joinPaths(...paths: string[]): Promise<string> {
|
||||
return this.fileBackups.joinPaths(...paths)
|
||||
}
|
||||
|
||||
askForMediaAccess(type: 'camera' | 'microphone'): Promise<boolean> {
|
||||
return this.media.askForMediaAccess(type)
|
||||
}
|
||||
|
||||
@@ -153,6 +153,10 @@ export class DesktopDevice extends WebOrDesktopDevice implements DesktopDeviceIn
|
||||
return this.remoteBridge.monitorPlaintextBackupsLocationForChanges(backupsDirectory)
|
||||
}
|
||||
|
||||
joinPaths(...paths: string[]): Promise<string> {
|
||||
return this.remoteBridge.joinPaths(...paths)
|
||||
}
|
||||
|
||||
async performHardReset(): Promise<void> {
|
||||
console.error('performHardReset is not yet implemented')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user