build: test latest macOS on GitHub Actions
Effortless path operations in Swift.
let path = Path("/usr/bin/swift")
let path = Path("/usr/bin") + Path("swift")
path.isAbsolute
path.isRelative
path.exists()
path.isDirectory()
let absolutePath = path.absolute()
This cleans up any redundant .. or . and double slashes in paths.
..
.
let normalizedPath = path.normalize()
path.delete()
path.move(newPath)
Path.current Path.current = "/usr/bin"
path.chdir { // Path.current would be set to path during execution of this closure }
path.children()
path.read()
path.write("Hello World!")
let paths = Path.glob("*.swift")
Kyle Fuller
PathKit is licensed under the BSD License.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
PathKit
Effortless path operations in Swift.
Usage
Joining paths
Determine if a path is absolute
Determine if a path is relative
Determine if a file or directory exists at the path
Determine if a path is a directory
Get an absolute path
Normalize a path
This cleans up any redundant
..
or.
and double slashes in paths.Deleting a path
Moving a path
Current working directory
Changing the current working directory
Children paths
Reading
Writing
Glob
Contact
Kyle Fuller
License
PathKit is licensed under the BSD License.