MCPcopy Create free account
hub / github.com/boostorg/build / file_creation_command

Function file_creation_command

v2/tools/common.py:536–545  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

534 paths + os.environ.get(variable, "").split(os.pathsep))
535
536def 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()

Callers

nothing calls this directly

Calls 1

os_nameFunction · 0.85

Tested by

no test coverage detected