Skip to content

Commit

Permalink
Add python script for reading ark info
Browse files Browse the repository at this point in the history
  • Loading branch information
PikminGuts92 committed Jan 18, 2024
1 parent 2606fc5 commit 39b2808
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/read_ark.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import grim
import sys

def main(args: list[str]):
ark_path = args[0]
print(f'Opening ark from \'{ark_path}\'')

ark = grim.Ark.from_file_path(ark_path)
ark_entries = ark.entries

print(f'Ark: (version = {ark.version}, encryption = {ark.encryption})')
print(f'Found {len(ark_entries)} entries')

for entry in ark_entries:
print(entry.path)

if __name__ == '__main__':
main(sys.argv[1:])

0 comments on commit 39b2808

Please sign in to comment.