Missing functions

This commit is contained in:
Max Howell
2019-01-17 17:22:08 -05:00
parent 97e9cbaa8f
commit 4af0ee3983
3 changed files with 20 additions and 2 deletions

View File

@@ -15,6 +15,10 @@ public extension Path {
return FileManager.default.fileExists(atPath: string, isDirectory: &isDir) && !isDir.boolValue
}
var isExecutable: Bool {
return FileManager.default.isExecutableFile(atPath: string)
}
var exists: Bool {
return FileManager.default.fileExists(atPath: string)
}