Skip to content

Commit 11c3c39

Browse files
author
Plamen Petkov
committed
added extra message on sync try
1 parent e3cbb08 commit 11c3c39

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/src/com/tns/NativeScriptSyncService.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,15 @@ private void executePartialSync(Context context, File sourceDir)
322322

323323
private void deleteRemovedFiles(File sourceDir, String sourceRootAbsolutePath, String targetRootAbsolutePath)
324324
{
325+
if(!sourceDir.exists()) {
326+
if (logger.isEnabled())
327+
{
328+
logger.write("Directory does not exist: " + sourceDir.getAbsolutePath());
329+
}
330+
}
331+
325332
File[] files = sourceDir.listFiles();
326-
333+
327334
if (files != null)
328335
{
329336
for (int i = 0; i < files.length; i++)

0 commit comments

Comments
 (0)