Skip to content

Translation 🌍

You can translate or improve the translation of this page.

Contribute

STRUCT

FileListGlob

Contents

swift
public struct FileListGlob: Codable, Equatable, Sendable

A glob pattern that refers to files.

Properties

glob

swift
public var glob: Path

The path with a glob pattern.

excluding

swift
public var excluding: [Path]

The excluding paths.

Methods

glob(_:excluding:)

swift
public static func glob(
    _ glob: Path,
    excluding: [Path] = []
) -> FileListGlob

Returns a generic file list glob.

  • Parameters:
    • glob: The path with a glob pattern.
    • excluding: The excluding paths.

Parameters

NameDescription
globThe path with a glob pattern.
excludingThe excluding paths.

glob(_:excluding:)

swift
public static func glob(
    _ glob: Path,
    excluding: Path?
) -> FileListGlob

Returns a file list glob with an optional excluding path.

Released under the MIT License.