Amiga 600

Python tool to extract disc image filenames and indexes


Disk images, whether from vintage systems such as Amiga, ZX Spectrum, or CP/M, or modern formats such as ISO and FAT, are valuable repositories of data. These images typically contain files, directories, and metadata that necessitate meticulous handling for extraction and analysis.


In this article, we will guide you through the creation of a Python tool that enables the inspection of various disk image formats. The tool will recursively extract file and directory metadata and store it in a database utilizing SQLAlchemy.
Upon completion, you will be left with a reusable Python script capable of:

  • Detect the type of disk image based on its structure.
  • Recursively traverse files and directories in the disk image.
  • Extract metadata, including full path, attributes, size, and modified dates.
  • Store this metadata in an SQLite database for analysis.

Subscribe to get access

Read more of this content when you subscribe today.

Subscribe to continue reading

Become a paid subscriber to get access to the rest of this post and other exclusive content.