Library for reading and writing Macintosh HFS volumes
Go to file
Elliot Nunn 64a9cec5bd Neaten up bootability
Any folder with a ZSYS and a FNDR file is made bootable, by pasting the
names of those files in the boot blocks.
2018-11-06 00:45:50 +08:00
bin Allow a custom (non-Finder) startup app 2018-11-05 23:47:28 +08:00
machfs Neaten up bootability 2018-11-06 00:45:50 +08:00
.gitignore Add a gitignore (phew) 2018-10-23 14:46:00 +08:00
LICENSE
README.md
setup.cfg Fix wheel-style distribution 2018-10-23 17:33:56 +08:00
setup.py Add scripts to convert to/from the native FS 2018-11-03 20:29:47 +08:00
test_all.py
upload.sh

machfs is a pure Python 3 library for reading and writing disk images in the Apple's long-deprecated Hierarchical File System format. It operates entirely on in-memory bytes objects. Images are serialised and deserialised in one go using the read and write methods of the Volume object.

The directory hierarchy of a Volume is then accessed and manipulated like a Python dict. Folder and File objects represent the contents of the filesystem.