PathAndHash class

class BalancedDiscStorage.path_and_hash.PathAndHash(path, hash=None)

Bases: str

Path representation, which also holds hash.

Note

This class is based on str, with which is fully interchangeable.

str(PathAndHash(path="xe", hash="asd")) == "xe"
path

str – Path to the file.

hash

str – Hash of the file.