Structure
NIOLeafFiles.Limit
Various options for configuring an instance of
NIOLeafFilesstruct 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
init(rawValue: Int)Creates a new option set from the given raw value.
Instance Properties
let rawValue: IntThe corresponding value of the raw type.
Type Properties
static let `default`: NIOLeafFiles.Limitstatic let dirLimited: NIOLeafFiles.Limitstatic let onlyLeafExtensions: NIOLeafFiles.LimitRequire any referenced file end in.leafstatic let requireExtensions: NIOLeafFiles.LimitRequire any referenced file have an extensionstatic let toSandbox: NIOLeafFiles.LimitLimit access to inside configured sandbox directorystatic let toVisibleFiles: NIOLeafFiles.LimitLimit access to visible files/directories
Relationships
Conforms To
Swift.EquatableSwift.ExpressibleByArrayLiteralSwift.OptionSetSwift.RawRepresentableSwift.SendableSwift.SendableMetatypeSwift.SetAlgebra