Skip to content

Commit 94d3501

Browse files
committed
Fixing model file listing issue
1 parent 8f02859 commit 94d3501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ads/aqua/common/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ def list_os_files_with_extension(oss_path: str, extension: str) -> [str]:
251251
files: List[ObjectSummary] = oss_client.list_objects().objects
252252

253253
return [
254-
file.name
254+
file.name[len(oss_client.filepath) :]
255255
for file in files
256-
if file.name.endswith(extension) and "/" not in file.name
256+
if file.name.endswith(extension)
257257
]
258258

259259

0 commit comments

Comments
 (0)