pub fn add_patterns_file<T: Pattern>(
    patterns: &mut Vec<List<T>>,
    source: impl Into<PathBuf>,
    follow_symlinks: bool,
    root: Option<&Path>,
    buf: &mut Vec<u8>
) -> Result<bool>
Expand description

Add the given file at source if it exists, otherwise do nothing. If a root is provided, it’s not considered a global file anymore. Returns true if the file was added, or false if it didn’t exist.