MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / isExecutable

Function isExecutable

helpers/stork/executable.js:36–41  ·  view source on GitHub ↗
( path )

Source from the content-addressed store, hash-verified

34// Check if a file is executable
35// https://stackoverflow.com/a/69897809/1397641
36async function isExecutable ( path ) {
37 const stats = await fs.stat( path )
38 const isExecutable = !!(stats.mode & fs.constants.S_IXUSR)
39
40 return isExecutable
41}
42
43// 👩‍💻 Bash Download example - https://github.com/jmooring/hugo-stork/blob/main/build.sh
44export async function downloadStorkExecutable () {

Callers 2

downloadStorkExecutableFunction · 0.85
buildIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected