pub fn ensure_created() -> Result<()>
make sure the config directory path exists, creating it if necessary and returning an error if creation failed