Function read_matches

Source
pub fn read_matches(
    lookup_dir: Vc<FileSystemPath>,
    prefix: RcStr,
    force_in_lookup_dir: bool,
    pattern: Vc<Pattern>,
) -> Vc<PatternMatches>
Expand description

Find all files or directories that match the provided pattern with the specified lookup_dir directory. prefix is the already matched part of the pattern that leads to the lookup_dir directory. When force_in_lookup_dir is set, leaving the lookup_dir directory by matching .. is not allowed.

Symlinks will not be resolved. It’s expected that the caller resolves symlinks when they are interested in that.