Swiftpack.co - Package - TommiKivimaki/DirectoryExistsLinux

DirectoryExistsLinux

swift-corelibs-foundation does not have the fileExists(atPath:, isDirectory:) implementation, since it requires Objective-C runtime.

This package provides a simple API to check if a directory exists in Linux. The functionality is implemented on C.

Usage

Add this package and make your target depend on it

let package = Package(
  name: "Cool-SPM-Project",
  dependencies: [
    .package(url: "https://github.com/TommiKivimaki/DirectoryExistsLinux", .branch("master"))
  ],
  targets: [
    .target(
      name: "Cool-SPM-Project",
      dependencies: ["DirectoryExistsLinux"])
  ]
)

Running test suite on Linux

Build a Docker image docker build -t directory-exists-linux-test .

Run the test docker run --rm directory-exists-linux-test

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 0