pub fn document_dir() -> Result<PathBuf>
Get the document dir.
Returns an error if the document dir could not be obtained