juliaturc commited on
Commit
d0e366f
·
1 Parent(s): 9111912

Filter out symlinks and .so files

Browse files
Files changed (2) hide show
  1. src/repo_manager.py +2 -0
  2. src/sample-exclude.txt +1 -0
src/repo_manager.py CHANGED
@@ -89,6 +89,8 @@ class RepoManager:
89
 
90
  def _should_include(self, file_path: str) -> bool:
91
  """Checks whether the file should be indexed, based on the included and excluded extensions."""
 
 
92
  _, extension = os.path.splitext(file_path)
93
  extension = extension.lower()
94
  if self.included_extensions and extension not in self.included_extensions:
 
89
 
90
  def _should_include(self, file_path: str) -> bool:
91
  """Checks whether the file should be indexed, based on the included and excluded extensions."""
92
+ if os.path.islink(file_path):
93
+ return False
94
  _, extension = os.path.splitext(file_path)
95
  extension = extension.lower()
96
  if self.included_extensions and extension not in self.included_extensions:
src/sample-exclude.txt CHANGED
@@ -41,6 +41,7 @@
41
  .pt
42
  .ptl
43
  .s
 
44
  .sqlite
45
  .stl
46
  .sum
 
41
  .pt
42
  .ptl
43
  .s
44
+ .so
45
  .sqlite
46
  .stl
47
  .sum