STRUCT
DirectoryDescriptor
Contents
- Properties
pathstate
- Methods
init(path:state:)
swift
public struct DirectoryDescriptor: EquatableDirectory Descriptor
Describes a folder operation that needs to take place as part of generating a project or workspace.
- seealso:
SideEffectsDescriptor
Properties
path
swift
public var path: AbsolutePathPath to the directory
state
swift
public var state: StateThe desired state of the directory (.present creates a fiile, .absent deletes a file)
Methods
init(path:state:)
swift
public init(
path: AbsolutePath,
state: DirectoryDescriptor.State = .present
)Creates a DirectoryDescriptor Descriptor
- Parameters:
- path: Path to the file
- state: The desired state of the file (
.presentcreates a fiile,.absentdeletes a file)
Parameters
| Name | Description |
|---|---|
| path | Path to the file |
| state | The desired state of the file (.present creates a fiile, .absent deletes a file) |
