mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
upsii
This commit is contained in:
@@ -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
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user