Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit e49483f

Browse files
committed
improve comments
1 parent 9fb0299 commit e49483f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sparsezoo/model/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def _get_directory_from_loose_api_files(
745745
for file_dict in files
746746
if file_dict["display_name"] == display_name
747747
]
748-
# fetch all the loose file that belong to the directory, if display name
748+
# fetch all the loose file that belong to the untared directory, if display name
749749
# is tarball (ends with .tar.gz)
750750
files_potentially_extracted = [
751751
file_dict
@@ -757,6 +757,8 @@ def _get_directory_from_loose_api_files(
757757
path_extracted_directory = os.path.join(
758758
parent_directory, display_name.replace(".tar.gz", "")
759759
)
760+
# check if the directory has been extracted and
761+
# if so, use the extracted files to create the directory
760762
is_directory_extracted = os.path.isdir(path_extracted_directory)
761763

762764
files = (

0 commit comments

Comments
 (0)