Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/BioSimSpace/Gateway/_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,13 +2037,13 @@ def _unarchive(name):
else:
dir = _os.path.splitext(name)[0] + "/"

# List of supported tar file formats.
tarfiles = ["tar.gz", "tar.bz2", "tar"]
# List of supported tar file extensions.
tar_exts = [".tar.gz", ".tar.bz2", ".tar"]

# Check whether this is a tar compressed file.
for tar_name in tarfiles:
for ext in tar_exts:
# Found a match.
if tar_name in name.lower():
if name.lower().endswith(ext):
# The list of decompressed files.
files = []

Expand Down
8 changes: 4 additions & 4 deletions src/BioSimSpace/Sandpit/Exscientia/Gateway/_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,13 +2037,13 @@ def _unarchive(name):
else:
dir = _os.path.splitext(name)[0] + "/"

# List of supported tar file formats.
tarfiles = ["tar.gz", "tar.bz2", "tar"]
# List of supported tar file extensions.
tar_exts = [".tar.gz", ".tar.bz2", ".tar"]

# Check whether this is a tar compressed file.
for tar_name in tarfiles:
for ext in tar_exts:
# Found a match.
if tar_name in name.lower():
if name.lower().endswith(ext):
# The list of decompressed files.
files = []

Expand Down