MCPcopy Index your code
hub / github.com/vercel/hyper / isExecutable

Function isExecutable

lib/utils/file.ts:15–21  ·  view source on GitHub ↗
(fileStat: Stats)

Source from the content-addressed store, hash-verified

13import fs, {Stats} from 'fs';
14
15export function isExecutable(fileStat: Stats): boolean {
16 if (process.platform === 'win32') {
17 return true;
18 }
19
20 return Boolean(fileStat.mode & 0o0001 || fileStat.mode & 0o0010 || fileStat.mode & 0o0100);
21}
22
23export function getBase64FileData(filePath: string): Promise<string | null> {
24 return new Promise((resolve): void => {

Callers 1

effectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected