Skip to content

번역

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

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.