Skip to content

Commit ce782b3

Browse files
committed
feat: fix MINIMUM_FILE_NAME_LENGTH
1 parent 4edc219 commit ce782b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scanoss/scanners/folder_hasher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _build_root_node(self, path: str) -> DirectoryNode:
140140
root_node = DirectoryNode(str(root))
141141

142142
all_files = [
143-
f for f in root.rglob('*') if f.is_file() and len(f.name.encode('utf-8')) < MINIMUM_FILE_NAME_LENGTH
143+
f for f in root.rglob('*') if f.is_file() and len(f.name.encode('utf-8')) <= MINIMUM_FILE_NAME_LENGTH
144144
]
145145
filtered_files = self.file_filters.get_filtered_files_from_files(all_files, str(root))
146146

0 commit comments

Comments
 (0)