openRepository

suspend fun openRepository(path: String, localSecret: LocalSecret? = null): Repository

Opens an existing repository.

  • path: path to the local file the repo is stored in.

  • local_secret: a local secret. See the read_secret and write_secret params in Self::session_create_repository for more details. If this repo uses local secret (s), this determines the access mode the repo is opened in: read_secret opens it in read mode, write_secret opens it in write mode and no secret or wrong secret opens it in blind mode. If this repo doesn't use local secret(s), the repo is opened in the maximal mode specified when the repo was created.