pub fn ensure_directory<P>(path: &P) -> Result<(), Error> where
    P: AsRef<Path> + ?Sized
Available on crate feature account only.