Skip to content

Commit

Permalink
Merge pull request #235 from fkie-cad/231-circumvent-pathlib-bug
Browse files Browse the repository at this point in the history
231 circumvent pathlib bug
  • Loading branch information
dorpvom authored Apr 3, 2019
2 parents c5b1144 + 338275b commit 5f0f77d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from tempfile import TemporaryDirectory
from typing import List

from common_helper_files import safe_rglob
from common_helper_process import execute_shell_command

from analysis.PluginBase import AnalysisBasePlugin
Expand Down Expand Up @@ -107,7 +108,7 @@ def _extract_metadata_from_file_system(self, file_object: FileObject, file_type:
pass

def _analyze_metadata_of_mounted_dir(self, mounted_dir: Path):
for file_ in mounted_dir.rglob("*"):
for file_ in safe_rglob(mounted_dir, False, False): # FIXME files with PermissionError could be ignored
if file_.is_file() and not file_.is_symlink():
self._enter_results_for_mounted_file(file_)

Expand Down

0 comments on commit 5f0f77d

Please sign in to comment.