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.
()
| 547 | paths + os.environ.get(variable, "").split(os.pathsep)) |
| 548 | |
| 549 | def file_creation_command(): |
| 550 | """ |
| 551 | Return a command which can create a file. If 'r' is result of invocation, then |
| 552 | 'r foobar' will create foobar with unspecified content. What happens if file |
| 553 | already exists is unspecified. |
| 554 | """ |
| 555 | if os_name() == 'NT': |
| 556 | return "echo. > " |
| 557 | else: |
| 558 | return "touch " |
| 559 | |
| 560 | #FIXME: global variable |
| 561 | __mkdir_set = set() |