From 00bdbec806d99b9575deec816787cf586c5739dd Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Fri, 15 Apr 2022 00:15:07 -0300 Subject: [PATCH] Get rid of symlink removal guard, it turns out mergerfs is the culprit --- biostools/extractors.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/biostools/extractors.py b/biostools/extractors.py index 3162519..8221ffa 100644 --- a/biostools/extractors.py +++ b/biostools/extractors.py @@ -179,11 +179,10 @@ class ArchiveExtractor(Extractor): pass # Remove any created symlink. - while os.path.islink(link_path): - try: - os.remove(link_path) - except: - break + try: + os.remove(link_path) + except: + pass def extract(self, file_path, file_header, dest_dir, dest_dir_0): """Extract an archive."""