Skip to content

Structure

NIOLeafFiles.Limit

Various options for configuring an instance of NIOLeafFiles
struct Limit

Overview

  • .requireExtensions - When set, any template must have a file extension

  • .onlyLeafExtensions - When set, any template must use the configured extension

  • .toSandbox - When set, attempts to read files outside of the sandbox directory will error

  • .toVisibleFiles - When set, attempts to read files starting with . will error (or files inside a directory starting with .)

A new NIOLeafFiles defaults to [.toSandbox, .toVisibleFiles, .requireExtensions]

Topics

Initializers

Instance Properties

  • rawValue
    The corresponding value of the raw type.

Type Properties

Relationships

Conforms To

  • Swift.Equatable
  • Swift.ExpressibleByArrayLiteral
  • Swift.OptionSet
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype
  • Swift.SetAlgebra