Skip to content

Commit 748e4db

Browse files
howethomasCopilot
andauthored
Update server/storage/file/__init__.py
Co-authored-by: Copilot <[email protected]>
1 parent 0f80b93 commit 748e4db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/storage/file/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,9 @@ def list_vcons(opts: dict = None, limit: int = 100, offset: int = 0) -> list[str
271271

272272
try:
273273
# Find all vCon files
274-
pattern = str(base_path / "**" / "*.json*")
275-
all_files = glob(pattern, recursive=True)
274+
pattern_json = str(base_path / "**" / "*.json")
275+
pattern_json_gz = str(base_path / "**" / "*.json.gz")
276+
all_files = glob(pattern_json, recursive=True) + glob(pattern_json_gz, recursive=True)
276277

277278
# Extract UUIDs from filenames
278279
uuids = []

0 commit comments

Comments
 (0)