Quick report on filesystem abstractions in go-filecoin
For the most part the repo provides strong abstractions for go-filecoin to use when interacting with fs objects.
The paths from the repodir to the datastores are kept either in the config (in the case of the main datastore) or as global variables of the repo package in others in the case of the others. Datastores are opened in interal functions called from OpenFSRepo
, and closed by Close
. The go objects created are then made available through public methods.