Don't scan for broken symlink in website files

This commit is contained in:
VirtuBox
2024-04-21 13:25:34 +02:00
parent dc6a8de4cd
commit e7eb865648

View File

@@ -318,9 +318,10 @@ class WOFileUtils():
""" """
links = [] links = []
broken = [] broken = []
ignored_dirs = ['./.git', './htdocs']
for root, dirs, files in os.walk(sympath): for root, dirs, files in os.walk(sympath):
if root.startswith('./.git'): if any(root.startswith(ignore_dir) for ignore_dir in ignored_dirs):
# Ignore the .git directory. # Ignore the .git directory.
continue continue
for filename in files: for filename in files: