ENUM
FileElement
Contents
- Cases
glob(pattern:excluding:)folderReference(path:)
swift
public enum FileElement: Codable, Equatable, SendableA file element from a glob pattern or a folder reference.
- glob: a glob pattern for files to include
- folderReference: a single path to a directory
Note: For convenience, an element can be represented as a string literal "some/pattern/**" is the equivalent of FileElement.glob(pattern: "some/pattern/**")
Cases
glob(pattern:excluding:)
swift
case glob(pattern: Path, excluding: [Path] = [])A file path (or glob pattern) to include, with optional exclusions.
For convenience, a string literal can be used as an alternate way to specify this option.
- Parameters:
- pattern: A glob pattern for files to include.
- excluding: An array of glob patterns to exclude from the matched files.
Example:
swift
.glob(pattern: "Documentation/**/*.md", excluding: ["Documentation/internal/**"])folderReference(path:)
swift
case folderReference(path: Path)A directory path to include as a folder reference.
