Skip to content

Commit 3a02eb4

Browse files
committed
Add comment explaining _GlobberTargetPath
1 parent b860576 commit 3a02eb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dissect/target/helpers/compat/path_313.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,4 +393,7 @@ def group(self) -> str:
393393

394394
class _GlobberTargetPath(TargetPath):
395395
def __str__(self) -> str:
396+
# This is necessary because the _Globber class expects an added `/` at the end
397+
# However, only PurePath's properly add that, normal Path's don't
398+
# We do want to operate on Path objects rather than strings, so do a little hack here
396399
return self._raw_path

0 commit comments

Comments
 (0)