Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/culvertsoft/mgen
/ mkFileExecutable
Function
mkFileExecutable
buildutil.py:35–37 ·
view source on GitHub ↗
(file_path)
Source
from the content-addressed store, hash-verified
33
shutil.rmtree(path)
34
35
def
mkFileExecutable(file_path):
36
st = os.stat(file_path)
37
os.chmod(file_path, st.st_mode | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH)
38
39
def
rmFolderContents(folder):
40
if
os.path.exists(folder):
Callers
1
install
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected