Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/VectifyAI/OpenKB
/ _default_file_mode
Function
_default_file_mode
openkb/locks.py:196–199 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
194
195
196
def
_default_file_mode() -> int:
197
current_umask = os.umask(0)
198
os.umask(current_umask)
199
return
0o666 & ~current_umask
200
201
202
def
_target_mode(path: Path) -> int:
Callers
2
test_published_files_keep_umask_mode_not_0600
Function · 0.90
_target_mode
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_published_files_keep_umask_mode_not_0600
Function · 0.72