Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aboutcode-org/scancode-toolkit
/ write_file
Function
write_file
src/packagedcode/regen_package_docs.py:24–25 ·
view source on GitHub ↗
(file_path, content)
Source
from the content-addressed store, hash-verified
22
TEMPLATES_DIR = os.path.join(dirname(__file__),
'templates'
)
23
24
def
write_file(file_path, content):
25
file_path.open(
"w"
).write(content)
26
27
28
def
regenerate(
Callers
1
regenerate
Function · 0.70
Calls
2
write
Method · 0.45
open
Method · 0.45
Tested by
no test coverage detected