Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 2d71f08

Browse files
committed
fixup
1 parent 2bed36a commit 2d71f08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cloudimagedirectory/connection/connection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def __list_files(self, dir: str) -> list[DataEntry]:
8282
data_files = []
8383
p = pathlib.Path(dir)
8484
if p.exists():
85-
for child in p.glob("**/*.json.zst") or p.glob("**/*.json"):
85+
for child in p.glob("**/*.json.zst"):
86+
data_files.append(DataEntry(str(child.resolve()), None))
87+
for child in p.glob("**/*.json"):
8688
data_files.append(DataEntry(str(child.resolve()), None))
8789
else:
8890
raise exception_path_not_existing
@@ -95,7 +97,6 @@ def get_content(self, data) -> DataEntry:
9597

9698
if data.filename.endswith('zst'):
9799
file_path = self.__decompress_zstandard_to_folder(data.filename)
98-
99100
else:
100101
file_path = data.filename
101102

0 commit comments

Comments
 (0)