Skip to content

Commit

Permalink
bug fix for Syno users
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 18, 2024
1 parent dc89ca7 commit 22117d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def _is_asset_folders(folder_path):
return False
else:
for item in os.listdir(folder_path):
if item.startswith('.') or item.startswith('@') or item == "tmp":
continue
if os.path.isdir(os.path.join(folder_path, item)):
return True
return False
Expand Down Expand Up @@ -473,7 +475,7 @@ def get_media_folders(paths, logger):

# Iterate through items in the directory
for item in tqdm(os.listdir(path), desc=f"Getting media folders for '{base_name}'", disable=None, leave=True):
if item.startswith('.'):
if item.startswith('.') or item.startswith('@'):
continue # Skip hidden files/folders

try:
Expand Down

0 comments on commit 22117d2

Please sign in to comment.