Return a command which can create a file. If 'r' is result of invocation, then 'r foobar' will create foobar with unspecified content. What happens if file already exists is unspecified.
()
| 534 | paths + os.environ.get(variable, "").split(os.pathsep)) |
| 535 | |
| 536 | def file_creation_command(): |
| 537 | """ |
| 538 | Return a command which can create a file. If 'r' is result of invocation, then |
| 539 | 'r foobar' will create foobar with unspecified content. What happens if file |
| 540 | already exists is unspecified. |
| 541 | """ |
| 542 | if os_name() == 'NT': |
| 543 | return "echo. > " |
| 544 | else: |
| 545 | return "touch " |
| 546 | |
| 547 | #FIXME: global variable |
| 548 | __mkdir_set = set() |