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:)Creates a new option set from the given raw value.
Instance Properties
rawValueThe corresponding value of the raw type.
Type Properties
defaultdirLimitedonlyLeafExtensionsRequire any referenced file end in.leafrequireExtensionsRequire any referenced file have an extensiontoSandboxLimit access to inside configured sandbox directorytoVisibleFilesLimit access to visible files/directories
Relationships
Conforms To
Swift.EquatableSwift.ExpressibleByArrayLiteralSwift.OptionSetSwift.RawRepresentableSwift.SendableSwift.SendableMetatypeSwift.SetAlgebra