Skip to main content

create_user_dir

Function create_user_dir 

Source
pub fn create_user_dir(path: &Path) -> Result<()>
Expand description

Create a directory (and parents) owned by the real user.

Under sudo, create_dir_all produces root-owned dirs. This wraps that call and hands ownership to the invoking user.

ยงErrors

Returns an error if directory creation fails.