python: edit ISO file directly

前端 未结 4 1599
抹茶落季
抹茶落季 2021-01-03 10:53
  1. Is it possible to take an ISO file and edit a file in it directly, i.e. not by unpacking it, changing the file, and repacking it?
  2. It is possible to do 1. from
4条回答
  •  礼貌的吻别
    2021-01-03 11:33

    PyCdlib can read and edit ISO-9660 files, as well as Joliet, Rock Ridge, UDF, and El Torito extensions. It has a bunch of detailed examples in its documentation, including one showing how to edit a file in-place. At the time of writing, it cannot add or remove files, or edit directories. However, it is still actively maintained, in contrast to the libraries linked in older answers.

提交回复
热议问题