Returns a Boolean value that indicates whether the operating system appears able to execute a specified file.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A file path.
true if the current process has execute privileges for the file at
false if the process does not have execute privileges or the existence of the file could not be determined.
If the file at
path is inaccessible to your app, perhaps because it does not have search privileges for one or more parent directories, this method returns
false. This method traverses symbolic links in the path. This method also uses the real user ID and group ID, as opposed to the effective user and group IDs, to determine if the file is executable.