Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper committed Feb 1, 2024
1 parent ab424d8 commit d257382
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions dissect/archive/wim.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,21 +454,3 @@ def _read_chunk(self, offset: int, size: int) -> bytes:
def _ts_to_ns(ts: int) -> int:
"""Convert Windows timestamps to nanosecond timestamps."""
return (ts * 100) - 11644473600000000000


if __name__ == "__main__":
import sys

from dissect.cstruct import dumpstruct

with open(sys.argv[1], "rb") as fh:
wim = WIM(fh)
dumpstruct(wim.header)

# for image in wim.images():
# dumpstruct(image.root.entry)

from IPython import embed

print()
embed(colors="Linux")

0 comments on commit d257382

Please sign in to comment.