Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit e65a7c1

Browse files
committed
chmod parent dirs when syncing files
1 parent b948847 commit e65a7c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mobile/android/android-device-file-system.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ export class AndroidDeviceFileSystem implements Mobile.IDeviceFileSystem {
5454
await Promise.all(
5555
_(localToDevicePaths)
5656
.filter(localToDevicePathData => this.$fs.getFsStats(localToDevicePathData.getLocalPath()).isFile())
57-
.map(async localToDevicePathData =>
58-
await this.adb.executeCommand(["push", localToDevicePathData.getLocalPath(), localToDevicePathData.getDevicePath()])
57+
.map(async localToDevicePathData => {
58+
const devicePath = localToDevicePathData.getDevicePath();
59+
await this.adb.executeCommand(["push", localToDevicePathData.getLocalPath(), devicePath]);
60+
await this.adb.executeShellCommand(["chmod", "0777", path.dirname(devicePath)]);
61+
}
5962
)
6063
.value()
6164
);

0 commit comments

Comments
 (0)