From 0b17da9d5ddbf789145240569216cf9bfb35dccb Mon Sep 17 00:00:00 2001 From: Pavol Zibrita Date: Tue, 3 Apr 2012 03:28:56 +0200 Subject: [PATCH] ignore backup dir when same as source dir --- DataExtractionOSM/src/net/osmand/data/index/IndexUploader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataExtractionOSM/src/net/osmand/data/index/IndexUploader.java b/DataExtractionOSM/src/net/osmand/data/index/IndexUploader.java index 7e9ed5a0b3..99a113398d 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/IndexUploader.java +++ b/DataExtractionOSM/src/net/osmand/data/index/IndexUploader.java @@ -402,7 +402,7 @@ public class IndexUploader { File toUpload = zipFile; boolean uploaded = uploadFileToServer(toUpload, summary, uc); // remove source file if file was splitted - if (uploaded && targetDirectory != null) { + if (uploaded && targetDirectory != null && !targetDirectory.equals(directory)) { File toBackup = new File(targetDirectory, toUpload.getName()); if (toBackup.exists()) { toBackup.delete();