PathKit icon indicating copy to clipboard operation
PathKit copied to clipboard

Effortless path operations in Swift

Results 15 PathKit issues
Sort by recently updated
recently updated
newest added

I think the following joining behavior is unnatural. ``` let path = Path("/usr/bin") + Path("/swift") // becomes "/swift" instead of "/usr/bin/swift" ``` Implemented here: https://github.com/kylef/PathKit/blob/62dca49ee33b16f209b9f2074d109e0a7191ae9e/Sources/PathKit.swift#L668 I think it is common...

Hi, nice framework, it's the best replacement for NSURL in Swift I've seen. Have you considered splitting Path into DirectoryPath and FilePath? Path has a lot of methods which are...

Consulting chatgpt gives the following tips, but the `append` method is not found in pathkit: ```swift import PathKit let path = Path("/path/to/file.txt") let text = "Hello, PathKit!" do { try...

macOS Version: 12.5.1 Xcode: 14.0 ## Example (execute in macOS App): ```swift let p = Path("/Users/your-name/Desktops") let p2 = Path("~/Desktops") print(p ~= p2) // false ``` ## Reason: - When...

`Path.glob("/path/**/*.swift")` will match - `path/Sources/aaa.swift` but does not match - `path/Nested/Sources/aaa.swift` Which is a deviation from the glob definition https://stackoverflow.com/questions/32604656/what-is-the-glob-character