Skip to content

ENUM

ResourceFileElement

Contents

  • Cases
    • glob(pattern:excluding:tags:inclusionCondition:)
    • file(path:tags:inclusionCondition:)
    • folderReference(path:tags:inclusionCondition:)
swift
public enum ResourceFileElement: Codable, Hashable, Equatable

A resource 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 ResourceFileElement.glob(pattern: "some/pattern/**")

Cases

glob(pattern:excluding:tags:inclusionCondition:)

swift
case glob(pattern: FilePath, excluding: [FilePath] = [], tags: [String] = [], inclusionCondition: PlatformCondition? = nil)

A glob pattern of files to include and ODR tags

file(path:tags:inclusionCondition:)

swift
case file(path: FilePath, tags: [String] = [], inclusionCondition: PlatformCondition? = nil)

A file path to a single file to include, ODR tags list and inclusion condition. For convenience, a string literal can be used as an alternate way to specify this option.

folderReference(path:tags:inclusionCondition:)

swift
case folderReference(path: FilePath, tags: [String] = [], inclusionCondition: PlatformCondition? = nil)

Relative path to a directory to include as a folder reference and ODR tags