Function init
Source pub fn init(
opts: &InitOptions,
potential_path: &Path,
) -> Result<PathBuf, DiaryError>
Expand description
Initialises the diary folder, if possible.
§Arguments
opts - The options passed by the user at runtime.
config - The contents of the config file.
§Returns
Either the Path of the new diary folder or a DiaryError if there was an
issue with initialisation.