FileCollector

public struct FileCollector

Collect file paths based on a set of constraints

  • default initializer

    Declaration

    Swift

    public init()
  • get file urls for given constraints

    Declaration

    Swift

    public func getFiles(for paths: [String], in directory: String, honoring fileOptions: FileOptions?) -> [URL]

    Parameters

    paths

    array of file paths or just use ["."]

    directory

    root of recursive search

    fileOptions

    containing include/exclude information via Globs

    Return Value

    an array of URLs