Skip to content

Commit af80015

Browse files
committed
Bugfix: file extension filter of spiderplus was misleading
1 parent 2413548 commit af80015

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nxc/modules/spider_plus.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ def parse_file(self, share_name, file_path, file_info):
286286
# Check file extension filter.
287287
_, file_extension = splitext(file_path)
288288
if file_extension:
289+
if file_extension.startswith(".") and len(file_extension) > 1:
290+
file_extension = file_extension[1:]
289291
self.stats["file_exts"].add(file_extension.lower())
290292
if file_extension.lower() in self.exclude_exts:
291293
self.logger.info(f'The file "{file_path}" has an excluded extension.')

0 commit comments

Comments
 (0)