Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dissect/target/loaders/dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def detect(path: Path) -> bool:
return find_entry_path(path) is not None

def map(self, target: Target) -> None:
path = self.absolute_path.joinpath(find_entry_path(self.absolute_path))
if (entry_path := find_entry_path(self.absolute_path)):
path = self.absolute_path.joinpath(entry_path)
else:
path = self.absolute_path
find_and_map_dirs(target, path)


Expand Down