MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isExecutableFile

Function isExecutableFile

packages/plugins/mcp/src/sdk/codex-plugins.ts:194–198  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

192 tryOrElse(() => fs.statSync(file).isFile(), false);
193
194const isExecutableFile = (file: string): boolean =>
195 tryOrElse(() => {
196 fs.accessSync(file, fs.constants.X_OK);
197 return fs.statSync(file).isFile();
198 }, false);
199
200/** Numeric-aware descending compare so `1.0.10 > 1.0.9` and date-like builds
201 * (`26.825.32147`) order correctly. */

Callers 3

resolveCodexCliFunction · 0.85
scanCachedPluginFunction · 0.85
scanCodexPluginsFunction · 0.85

Calls 1

tryOrElseFunction · 0.85

Tested by

no test coverage detected