push push
This commit is contained in:
Ali
2024-12-10 22:37:46 +01:00
parent 4a4533d5b5
commit f470aab9b8
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ def read_files(path, output, filetypes=None):
for root, dirs, files in os.walk(path):
for file in files:
if (file_type := file.split(".")[-1]) in filetypes:
output.append((file_type, os.path.join(path, file)))
output.append((file_type, os.path.join(path, file), file))
for folder in dirs:
read_files(os.path.join(path, folder), output)