Skip to main content

auto_collect

Function auto_collect 

Source
pub(crate) fn auto_collect(
    ctx: &Context,
    dir: &Path,
    config: &AutoCollectSection,
    claimed_paths: Option<&HashSet<PathBuf>>,
    result_prefix: &str,
)
Expand description

Collect files from dir and send them as results via ctx.results().push().

When claimed_paths is Some, files whose canonical path appears in the set are skipped (artifact dedup). When None, all matching files are sent (external log collection - no dedup).