Don't scan for broken symlink in website files
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user