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
11 changes: 9 additions & 2 deletions dissect/target/plugins/filesystem/ntfs/mft.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,15 @@ def check_compatible(self) -> None:
action="store_true",
help="compacts MFT timestamps into MACB bitfield (format: MACB[standard|ads]/MACB[filename])",
)
@arg("--ignore-dos", action="store_true", help="ignore DOS file names")
def records(
self, compact: bool = False, fs: int | None = None, start: int = 0, end: int = -1, macb: bool = False
self,
compact: bool = False,
fs: int | None = None,
start: int = 0,
end: int = -1,
macb: bool = False,
ignore_dos: bool = False,
) -> Iterator[
FilesystemStdRecord | FilesystemFilenameRecord | FilesystemStdCompactRecord | FilesystemFilenameCompactRecord
]:
Expand Down Expand Up @@ -218,7 +225,7 @@ def noop_aggregator(records: Iterator[Record]) -> Iterator[Record]:
try:
info.update(record, filesystem)

for path in record.full_paths():
for path in record.full_paths(ignore_dos):
path = f"{info.drive_letter}{path}"
yield from aggregator(
iter_records(
Expand Down