Class Directory
java.lang.Object
repository.Directory
- Direct Known Subclasses:
Snapshot
Stores data about a directory when it was backed up. Used only for restoring
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(IPFSProxyConnector connector, Encryption encryption, String parentDir) Downloads all files referenced by this directorygetCIDs()Recursively retrieves all CIDs that are in use by this directory
-
Field Details
-
name
The name of the directory. Saved so it can be restored on restore -
files
-
directories
-
-
Constructor Details
-
Directory
public Directory() -
Directory
-
-
Method Details
-
getCIDs
-
get
public boolean get(IPFSProxyConnector connector, Encryption encryption, String parentDir) throws EncryptionException, IOException, IPFSException Downloads all files referenced by this directory- Parameters:
connector- The ipfs connectorencryption- The encryption helperparentDir- The path to the parent directory- Returns:
- whether it was successful or not
- Throws:
EncryptionExceptionIOExceptionIPFSException
-