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

Commit f188b50

Browse files
Merge pull request #892 from telerik/vladimirov/fix-enoent-dir
Fix ENOENT when sync to iOS simulator
2 parents 28be964 + 38ce0ad commit f188b50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mobile/ios/simulator/ios-simulator-file-system.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class IOSSimulatorFileSystem implements Mobile.IDeviceFileSystem {
4848
if (this.$fs.getFsStats(localFilePath).isDirectory()) {
4949
shelljs.mkdir(deviceFilePath);
5050
} else {
51+
this.$fs.ensureDirectoryExists(path.dirname(deviceFilePath));
5152
shelljs.cp("-f", localFilePath, deviceFilePath);
5253
}
5354
}).future<void>()();

0 commit comments

Comments
 (0)