This commit is contained in:
2024-07-24 13:17:07 +02:00
committed by Flo Greistorfer
parent 285d286baf
commit cd3f2959c0

View File

@@ -159,7 +159,7 @@ def get_total_folders(folder: str, _args: Args, _total: int = 0) -> int:
items = sorted(os.listdir(folder)) items = sorted(os.listdir(folder))
for item in items: for item in items:
if item not in EXCLUDES and os.path.isdir(os.path.join(folder, item)): if item not in EXCLUDES and os.path.isdir(os.path.join(folder, item)) and not item.startswith("."):
if item not in _args.exclude_folders and not any( if item not in _args.exclude_folders and not any(
fnmatch.fnmatchcase(os.path.join(folder, item), exclude) for exclude in _args.exclude_folders fnmatch.fnmatchcase(os.path.join(folder, item), exclude) for exclude in _args.exclude_folders
): ):