Commit c35a91ca authored by Jasper Koehorst's avatar Jasper Koehorst
Browse files

ensuring that local file is removed

parent 5fe79d7d
......@@ -138,7 +138,11 @@ public class ENA {
}
// If no overwrite and destination exists we can skipp it
if (!commandOptions.overwrite && destFile.exists()) continue;
if (!commandOptions.overwrite && destFile.exists()) {
// delete local file
new File(yamlFileName).delete();
continue;
}
while (destFile.exists()) {
destFile.delete();
......@@ -173,8 +177,6 @@ public class ENA {
private static boolean filter(HashMap<String, Integer> lookup, String[] line) {
if (lookup.containsKey("assembly_title")) {
// Accept all DSM strains
if (line[lookup.get("assembly_title")].toUpperCase().contains("DSM")) {
......
Markdown is supported
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