We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92bbdd1 + 9cd3a53 commit 27207feCopy full SHA for 27207fe
Foundation/FileManager+Win32.swift
@@ -497,8 +497,9 @@ extension FileManager {
497
}
498
499
internal func _isExecutableFile(atPath path: String) -> Bool {
500
- // FIXME(compnerd) is there some test that we can perform here?
501
- return true
+ var isDirectory: ObjCBool = false
+ guard fileExists(atPath: path, isDirectory: &isDirectory) else { return false }
502
+ return !isDirectory.boolValue && _isReadableFile(atPath: path)
503
504
505
internal func _isDeletableFile(atPath path: String) -> Bool {
0 commit comments