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

Function write_to_dir

tests/test_basic.py:401–403  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

openFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…