Skip to content

ENUM

FileElement

Contents

  • Cases
    • glob(pattern:)
    • file(path:)
    • folderReference(path:)
swift
public enum FileElement: Codable, Hashable, Equatable

A file element from a glob pattern or a folder reference.

  • glob: a glob pattern for files to include
  • file: a path to single file 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:)

swift
case glob(pattern: FilePath)

A file path (or glob pattern) to include. For convenience, a string literal can be used as an alternate way to specify this option.

file(path:)

swift
case file(path: FilePath)

A file path to include. Globs described using file will not be expanded.

folderReference(path:)

swift
case folderReference(path: FilePath)

A directory path to include as a folder reference.