pub fn validate_path( target_path: &str, allowed_directory: &Path, current_directory: &Path, ) -> Option<PathBuf>