in src/helper.rs [190:205]
fn load_local_action_scripts(directory_source: &str) -> Result<()> {
if !Path::new(directory_source).exists() {
return Err(anyhow!("Directory {} does not exist", directory_source));
}
if Path::new(constants::ACTION_IMPL_DIR).exists() {
fs::remove_dir_all(constants::ACTION_IMPL_DIR)
.context("Directory ACTION_IMPL_DIR can not be removed")?;
}
let mut options = fs_extra::dir::CopyOptions::new();
options.skip_exist = true;
options.copy_inside = true;
fs_extra::dir::copy(directory_source, constants::ACTION_IMPL_DIR, &options)
.context("Copying the content of the script directory to '/tmp' failed")?;
Ok(())
}