MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / _create_sample_file

Function _create_sample_file

tests/utils/test_sys_dynamic_import.py:9–12  ·  view source on GitHub ↗

creates a sample file at some path with some content

(filepath: str, content: str)

Source from the content-addressed store, hash-verified

7
8
9def _create_sample_file(filepath: str, content: str):
10 """creates a sample file at some path with some content"""
11 with open(filepath, "w", encoding="utf-8") as f:
12 f.write(content)
13
14
15def _delete_sample_file(filepath: str):

Calls

no outgoing calls

Tested by

no test coverage detected