Skip to content

Structure

DirectoryConfiguration

DirectoryConfiguration represents a configured working directory. It can also be used to derive a working directory automatically.
struct DirectoryConfiguration

Overview

let dirConfig = DirectoryConfiguration.detect()
print(dirConfig.workingDirectory) // "/path/to/workdir"

Topics

Initializers

Instance Properties

Type Methods

  • detect()
    Creates a DirectoryConfig by deriving a working directory using the #file variable or getcwd method.

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype