Lengyue 1 vuosi sitten
vanhempi
commit
f4e70f9dda
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)