Commit 9a469405 authored by Christian MOMON's avatar Christian MOMON
Browse files

Added file remove before action.

parent c481c3b5
......@@ -498,6 +498,10 @@ public class DownloadGeoNamesFilesDialog extends JDialog
new File(path, "admin1CodesASCII.txt").delete();
new File(path, "admin2Codes.txt").delete();
new File(path, "README").delete();
new File(path, "id_seek.index").delete();
new File(path, "seeks.index").delete();
new File(path, "word_seek.index").delete();
new File(path, "word_seeks.index.rejection").delete();
}
}
......
......@@ -445,9 +445,12 @@ public class DownloadDatabaseDialog extends JDialog
{
if (StringUtils.isNotBlank(path))
{
new File(path + "/allCountries.zip").delete();
new File(path + "/allCountries.txt").delete();
new File(path + "/featureCodes_en.txt").delete();
new File(path, "allCountries.zip").delete();
new File(path, "allCountries.txt").delete();
new File(path, "featureCodes_en.txt").delete();
new File(path, "admin1CodesASCII.txt").delete();
new File(path, "admin2Codes.txt").delete();
new File(path, "README").delete();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment