FilterFiles

public struct FilterFiles : Shortcut

Given a list of files, this action returns the files that match the given criteria.

Input: (Files) The files to filter through

Result: (Files) The files that match the criteria.

  • The contents of the shortcut.

    Declaration

    Swift

    public var body: some Shortcut { get }
  • Initializes the shortcut.

    Declaration

    Swift

    public init(input: Variable, filters: FilterSet? = nil, sortOrder: SortOrder? = nil, limit: Int? = nil)

    Parameters

    input

    The files to filter through.

    filters

    A collection of filers to apply to the content.

    sortOrder

    The order to sort the files in.

    limit

    Whether or not to limit the number of files that are passed as output.