From 6cebe5780eab1fbffb1be04c8e4e2cf3703ce41f Mon Sep 17 00:00:00 2001 From: brian91292 <8050523+brian91292@users.noreply.github.com> Date: Tue, 4 Nov 2025 08:17:43 -0600 Subject: [PATCH] manually create directories before copying files --- desktop-app/src/app/adb-client.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop-app/src/app/adb-client.service.ts b/desktop-app/src/app/adb-client.service.ts index 514799d..e623f78 100644 --- a/desktop-app/src/app/adb-client.service.ts +++ b/desktop-app/src/app/adb-client.service.ts @@ -855,6 +855,7 @@ This can sometimes be caused by changes to your hosts file. Don't make changes u let obbBackupPath = this.appService.path.join(this.appService.backupPath, packageName, 'data', folderName, 'obb'); if (this.appService.fs.existsSync(obbBackupPath)) { this.appService.fs.readdir(obbBackupPath, async (err, entries) => { + await this.runAdbCommand('adb shell mkdir -p /sdcard/Android/obb/' + packageName, true); for (let i = 0; i < entries.length; i++) { await this.adbCommand( 'push', @@ -1098,7 +1099,10 @@ This can sometimes be caused by changes to your hosts file. Don't make changes u if (task) { task.status = name + ': Transferring...'; } - let p: any = this.runAdbCommand('adb push "' + filepath + '" /sdcard/Android/obb/' + packageId + '/' + filename, true); + const obbDirectory: string = '/sdcard/Android/obb/' + packageId; + let p: any = this.runAdbCommand('adb shell mkdir -p ' + obbDirectory, true).then(() => + this.runAdbCommand('adb push "' + filepath + '" ' + obbDirectory + '/' + filename, true) + ); if (cb) { cb(); }