(o)
| 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") |