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

Fix ENOENT when sync to iOS simulator #892

Merged
merged 1 commit into from
Feb 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mobile/ios/simulator/ios-simulator-file-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class IOSSimulatorFileSystem implements Mobile.IDeviceFileSystem {
if (this.$fs.getFsStats(localFilePath).isDirectory()) {
shelljs.mkdir(deviceFilePath);
} else {
this.$fs.ensureDirectoryExists(path.dirname(deviceFilePath));
shelljs.cp("-f", localFilePath, deviceFilePath);
}
}).future<void>()();
Expand Down