Repository
Functions
Creates a new directory at the given path in the repository.
Creates a new file at the given path in the repository.
Creates mirror of this repository on the given cache server host.
Deletes mirror of this repository from the given cache server host.
Returns the access mode (blind, read or write) the repository is currently opened in.
Gets the current credentials of this repository. Can be used to restore access after closing and reopening the repository.
Returns the type of repository entry (file, directory, ...) or None
if the entry doesn't exist.
Return the info-hash of the repository formatted as hex string. This can be used as a globally unique, non-secret identifier of the repository.
Returns the synchronization progress of this repository as the number of bytes already synced (Progress.value) vs. the total size of the repository in bytes (Progress.total).
Is Bittorrent DHT enabled?
Is Peer Exchange enabled?
Returns whether syncing with other replicas is enabled for this repository.
Checks if this repository is mirrored on the given cache server host.
Returns the entries of the directory at the given path in the repository.
Removes the directory at the given path from the repository. If recursive
is true it removes also the contents, otherwise the directory must be empty.
Removes (deletes) the file at the given path from the repository.
Sets, unsets or changes local secrets for accessing the repository or disables the given access mode.
Switches the repository to the given access mode.
Sets the current credentials of the repository.
Enables/disabled Bittorrent DHT (for peer discovery).
Enables/disables Peer Exchange (for peer discovery).
Enabled or disables syncing with other replicas.
Creates a share token to share this repository with other devices.
Subscribe to repository events.