Skip to main content

init_library

Function init_library 

Source
pub fn init_library(root: &Path, name: &str) -> Result<Library, LibraryError>
Expand description

Create a new Capsule library at root with the given name.

Fails if root is a non-empty directory. If root does not exist it is created. On any failure after the first directory is created, all created directories are removed before returning the error.