Skip to main content

clean_out_dir

Function clean_out_dir 

Source
pub async fn clean_out_dir(out_dir: &Path)
Expand description

Cleans the output directory before a fresh build.

Removes all files and subdirectories within the output directory so that stale artifacts from previous builds do not remain. The directory itself is preserved (recreated if missing).

ยงArguments

  • &Path - The output directory to clean.