Function brane_cli::utils::get_packages_dir
source · pub fn get_packages_dir() -> Result<PathBuf, UtilError>
Expand description
Edited: Changed to return UtilErrors.
Returns the general package directory based on the user’s home folder.
Basically, tries to resolve the folder ’~/.local/share/brane/packages`.
Note that this does not mean that this directory exists.
Returns
A PathBuf with an absolute path to the packages dir, or an UtilError otherwise.