diff --git a/dissect/target/plugins/apps/browser/iexplore.py b/dissect/target/plugins/apps/browser/iexplore.py index 27650f7b3..7772b182a 100644 --- a/dissect/target/plugins/apps/browser/iexplore.py +++ b/dissect/target/plugins/apps/browser/iexplore.py @@ -212,7 +212,7 @@ def downloads(self) -> Iterator[BrowserDownloadRecord]: ts_end=ts_end, browser="iexplore", id=container_record.EntryId, - path=down_path, + path=self.target.fs.path(down_path), url=down_url, size=None, state=None, diff --git a/tests/plugins/apps/browser/test_iexplore.py b/tests/plugins/apps/browser/test_iexplore.py index d51f45104..0a5bbd91a 100644 --- a/tests/plugins/apps/browser/test_iexplore.py +++ b/tests/plugins/apps/browser/test_iexplore.py @@ -1,6 +1,7 @@ from typing import Iterator import pytest +from flow.record.fieldtypes import path from dissect.target import Target from dissect.target.filesystem import VirtualFilesystem @@ -34,5 +35,5 @@ def test_iexplore_history(target_iexplore: Target) -> None: def test_iexplore_downloads(target_iexplore: Target) -> None: records = list(target_iexplore.iexplore.downloads()) assert len(records) == 1 - assert records[0].path.as_posix() == "C:\\Users\\John\\Downloads\\archlinux-2023.02.01-x86_64.iso" + assert records[0].path == path.from_windows("C:\\Users\\John\\Downloads\\archlinux-2023.02.01-x86_64.iso") assert records[0].url == "https://mirror.cj2.nl/archlinux/iso/2023.02.01/archlinux-2023.02.01-x86_64.iso"