isExecutable function

bool isExecutable(
  1. String path
)

checks if the passed path (a file or directory) is executable by the user that owns this process @Throwing(posix.StatException) @Throwing(UnsupportedError)

Implementation

bool isExecutable(String path) {
  core.verbose(() => 'isExecutable: ${truepath(path)}');
  return Settings().isWindows || _checkPermission(path, _executeBitMask);
}