pub const ARCHIVE_PATH_SEPARATOR: char = '/';Expand description
A single type to handle Autonomi PublicArchive and PrivateArchive
Note: A Tree uses and adds to the features of a DualArchive and is better suited for typical use cases. Both provide simplified handling of the two Atonomi archive types.
The only difference between Autonomi PublicArchive and PrivateArchive is that a PublicArchive contains datamap addresses for each file entry, whereas a PrivateArchive stores the datamap Chunk. This Chunk contains both the datamap and its address. In the case of a PrivateArchive it cannot be assumed that the datamap has been stored on the network.
DualArchive is intended to simplify handling of both representations in a single struct, and to facilitate use of PrivateArchive to handle public files, since it is more efficient to hold the datamaps along with file metadata.
Internally DualArchive contains both types and provides equivalent methods for both. A dweb_type can be set to indicate which internal object is being used, and this type will be set automatically by deserialisation methods.
Separator used in PublicArchive/PrivateArchive and Tree::directory_map