Skip to content

Commit 41acdb4

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix ENOENT error when livesyncing deleted .xml or .css file
Fixes #1210
1 parent 35446fc commit 41acdb4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/services/usb-livesync-service.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
135135

136136
let devices = this.$devicesService.getDeviceInstances();
137137
_.each(devices, (device: Mobile.IDevice) => {
138-
this.transferFiles(device, deviceAppData, localToDevicePaths, projectFilesPath, true).wait();
138+
if (this.$fs.exists(filePath).wait()) {
139+
this.transferFiles(device, deviceAppData, localToDevicePaths, projectFilesPath, true).wait();
140+
}
139141
let platformSpecificUsbLiveSyncService = this.resolvePlatformSpecificLiveSyncService(platform || this.$devicesService.platform, device, platformSpecificLiveSyncServices);
140142
return platformSpecificUsbLiveSyncService.sendPageReloadMessageToDevice(deviceAppData).wait();
141143
});

0 commit comments

Comments
 (0)