Fix uploader
This commit is contained in:
parent
6a3e1da72b
commit
a4ed0d2509
1 changed files with 2 additions and 1 deletions
|
@ -307,7 +307,8 @@ public class IndexUploader {
|
|||
|
||||
uploadIndex(zFile, description, uploadCredentials);
|
||||
} finally {
|
||||
if (!f.getName().equals(unzipped.getName())) {
|
||||
if (!f.getName().equals(unzipped.getName()) ||
|
||||
(targetDirectory != null && !targetDirectory.equals(directory))) {
|
||||
unzipped.delete(); // delete the unzipped file
|
||||
}
|
||||
if (logFile.exists()) {
|
||||
|
|
Loading…
Reference in a new issue