setDirectory

Set the canonical path of the directory in which to store the database. If the directory doesn't already exist it will be created. If it cannot be created a CouchbaseLiteError will be thrown.

Note: The directory set by this method is the canonical path to the directory whose path is passed. It is NOT necessarily the case that directory == config.setDirectory(directory).directory

Return

this.

Parameters

directory

the directory

Throws

if the directory does not exist and cannot be created