pub fn standard_project_folder(
namespace: &str,
default: Option<PathBuf>,
) -> PathBuf
Expand description
Returns path to a folder in the operating system’s cache directory that is unique to the given
namespace
with a random UUID as the name of the final folder.
The folder is not created.
Used primarily by ACORN CLI where namespace
is of a subcommand task. e.g. “check”, “extract”, etc.
§Arguments
namespace
- A string slice representing the name of the namespace.default
- An optionalPathBuf
to use as the root directory instead of the cache directory.
§Returns
A PathBuf
to the folder.