Function brane_cli::build_common::clean_directory

source ยท
pub fn clean_directory(package_dir: &Path, files: Vec<&str>)
Expand description

Edited: now returning BuildErrors. Also leaving .lock removal to the main handle function.

Cleans the resulting build directory from the build files (but only if the build files should be removed).

Arguments

  • package_dir: The directory to clean (we assume this has been canonicalized and thus exists).
  • files: The files to remove from the build directory.

Returns
Nothing - although this function will print BuildErrors as warnings to stderr using the logger.