소스 검색

Fix extract

Lengyue 1 년 전
부모
커밋
f4e70f9dda
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fish_speech/utils/file.py

+ 1 - 1
fish_speech/utils/file.py

@@ -44,7 +44,7 @@ def list_files(
     if not path.exists():
         raise FileNotFoundError(f"Directory {path} does not exist.")
 
-    files = [file for ext in extensions for file in path.iglob(f"**/*{ext}")]
+    files = [file for ext in extensions for file in path.rglob(f"*{ext}")]
 
     if sort:
         files = natsorted(files)