Skip to content

Swift package with types for absolute and relative file paths.

License

Notifications You must be signed in to change notification settings

Formkunft/swift-scoped-file-path

Repository files navigation

Swift Scoped File Path

A Swift package introducing separate AbsoluteFilePath and RelativeFilePath based on FilePath from Swift System.

Using Swift Scoped File Path in your project

Add swift-scoped-file-path as a dependency to your package:

let package = Package(
    // ...
    dependencies: [
        .package(url: "https://github.com/Formkunft/swift-scoped-file-path.git", .upToNextMajor(from: "0.2.0")),
    ],
    targets: [
        .target(
            // ...
            dependencies: [
                .product(name: "ScopedFilePath", package: "swift-scoped-file-path"),
            ]),
    ]
)

Then, import ScopedFilePath in your code:

import ScopedFilePath

// ...

About

Swift package with types for absolute and relative file paths.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages