FileFiltering

public struct FileFiltering<Property> : FileFilterConvertible where Property : FileFilterProperty

Represents a FileFilterConvertible value by means of a property on such a file.

Available where Property.Value == Text?

  • Initializes the value with a filter that keeps files whose property is equal to the text argument.

    Declaration

    Swift

    public init(is text: Text?)

    Parameters

    text

    The text to compare.

  • Initializes the value with a filter that keeps files whose property is not equal to the text argument.

    Declaration

    Swift

    public init(isNot text: Text?)

    Parameters

    text

    The text to compare.

  • Initializes the value with a filter that keeps files whose property contains the text argument.

    Declaration

    Swift

    public init(contains text: Text?)

    Parameters

    text

    The text to compare.

  • Initializes the value with a filter that keeps files whose property does not contain the text argument.

    Declaration

    Swift

    public init(doesNotContain text: Text?)

    Parameters

    text

    The text to compare.

  • Initializes the value with a filter that keeps files whose property begins with the text argument.

    Declaration

    Swift

    public init(beginsWith text: Text?)

    Parameters

    text

    The text to compare.

  • Initializes the value with a filter that keeps files whose property ends with the text argument.

    Declaration

    Swift

    public init(endsWith text: Text?)

    Parameters

    text

    The text to compare.

Available where Property.Value == FileSize

  • Initializes the value with a filter that keeps files whose property is equal to the file size argument.

    Declaration

    Swift

    public init(isExactly fileSize: FileSize)

    Parameters

    fileSize

    The file size to compare.

  • Initializes the value with a filter that keeps files whose property is not equal to the file size argument.

    Declaration

    Swift

    public init(isNotExactly fileSize: FileSize)

    Parameters

    fileSize

    The file size to compare.

  • Initializes the value with a filter that keeps files whose property is larger than the file size argument.

    Declaration

    Swift

    public init(isLargerThan fileSize: FileSize)

    Parameters

    fileSize

    The file size to compare.

  • Initializes the value with a filter that keeps files whose property is larger than or equal to the file size argument.

    Declaration

    Swift

    public init(isLargerThanOrEqualTo fileSize: FileSize)

    Parameters

    fileSize

    The file size to compare.

  • Initializes the value with a filter that keeps files whose property is smaller than the file size argument.

    Declaration

    Swift

    public init(isSmallerThan fileSize: FileSize)

    Parameters

    fileSize

    The file size to compare.

  • Initializes the value with a filter that keeps files whose property is smaller than or equal to the file size argument.

    Declaration

    Swift

    public init(isSmallerThanOrEqualTo fileSize: FileSize)

    Parameters

    fileSize

    The file size to compare.

Available where Property.Value == VariableDateValueConvertible

  • Initializes the value with a filter that keeps files whose property is equal to the date or variable argument.

    Declaration

    Swift

    public init(isExactly value: VariableDateValueConvertible)

    Parameters

    value

    The date or variable to compare.

  • Initializes the value with a filter that keeps files whose property is not equal to the date or variable argument.

    Declaration

    Swift

    public init(isNotExactly value: VariableDateValueConvertible)

    Parameters

    value

    The date or variable to compare.

  • Initializes the value with a filter that keeps files whose property is after the date or variable argument.

    Declaration

    Swift

    public init(isAfter value: VariableDateValueConvertible)

    Parameters

    value

    The date or variable to compare.

  • Initializes the value with a filter that keeps files whose property is before the date or variable argument.

    Declaration

    Swift

    public init(isBefore value: VariableDateValueConvertible)

    Parameters

    value

    The date or variable to compare.

  • Initializes the value with a filter that keeps files whose property is today.

    Declaration

    Swift

    public static var isToday: `Self` { get }
  • Initializes the value with a filter that keeps files whose property is between the dates or variable arguments.

    Declaration

    Swift

    public init(isBetween startValue: VariableDateValueConvertible, and endValue: VariableDateValueConvertible)

    Parameters

    startValue

    A date or variable to compare.

    endValue

    A date or variable to compare.

  • Initializes the value with a filter that keeps files whose property is in the time period represented by the time span argument.

    Declaration

    Swift

    public init(isInTheLast timeSpan: TimeSpanValue)

    Parameters

    timeSpan

    A time span to compare.