MCPcopy
hub / github.com/pallets/click / write_to_dir

Function write_to_dir

tests/test_basic.py:401–403  ·  tests/test_basic.py::write_to_dir
(o)

Source from the content-addressed store, hash-verified

399 @click.command()
400 @click.option(class="st">"-O", type=click.Path(file_okay=False, exists=True, writable=True))
401 def write_to_dir(o):
402 with open(os.path.join(o, class="st">"foo.txt"), class="st">"wb") as f:
403 f.write(bclass="st">"meh\n")
404
405 with runner.isolated_filesystem():
406 os.mkdir(class="st">"test")

Callers

nothing calls this directly

Calls 2

openFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected