PLATO Account Files Dataset I/O (pfaccfiles)

Utility for accessing PLATO packs and master files.

Copyright (c) 2021-2024 Steve Zoppi

This is licensed software a copy of the license should have been included in the source tree for this module. You may find a copy of the license here: https://www.gnu.org/licenses/gpl-3.0.en.html

This program operates on PLATO packs and master files. Packs are accessed as DtCyber disk images. Master files (CDC style virtual packs) can be accessed directly (if you have a master file image copy available) or as NOS files contained in a NOS disk image.

<Documentation_reference>

When accessing PLATO file structures, the host pack object needs to be instantiated and then the PlatoFile class may be used to access the underlying structure.

class pfaccfiles.AccFilesDS(cluster: PackCluster, acfname='accfiles')[source]

Bases: object

Mapping of Account Common (s0files:accountcom)

The account common is the central storage of filename information for all accounts.

The information in the account common is a set of arrays built at system installation/initializion. The lists don’t shrink or grow so they are managed “in place”.

add_file(filename: str | int) int[source]

Adding a file means inserting into the list.

commit() None[source]
del_file(filename: str | int) int[source]
dump() None[source]