Skip to content

Commit

Permalink
Force delete because file(s) may not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
martinghunt committed May 7, 2024
1 parent ace49ac commit 919be0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viridian/one_sample_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,9 @@ def final_tidy(self):
if not self.debug:
utils.syscall(f"rm -rf {self.processing_dir} {self.final_unmasked_fasta}*")
if not (self.keep_bam or self.reads_bam is not None):
utils.syscall(f"rm {self.all_reads_bam}*")
utils.syscall(f"rm -f {self.all_reads_bam}*")
if self.ena_run is not None and not self.keep_ena_reads:
utils.syscall(f"rm -r {self.ena_reads_dir}")
utils.syscall(f"rm -rf {self.ena_reads_dir}")
if "debug" in self.log_dict:
del self.log_dict["debug"]

Expand Down

0 comments on commit 919be0a

Please sign in to comment.