From e7eb865648b0d3c738bb23ae26b3ecbae09f4db9 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sun, 21 Apr 2024 13:25:34 +0200 Subject: [PATCH] Don't scan for broken symlink in website files --- wo/core/fileutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wo/core/fileutils.py b/wo/core/fileutils.py index 92d45bf..97d1686 100644 --- a/wo/core/fileutils.py +++ b/wo/core/fileutils.py @@ -318,9 +318,10 @@ class WOFileUtils(): """ links = [] broken = [] + ignored_dirs = ['./.git', './htdocs'] 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. continue for filename in files: