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

Function file_creation_command

src/tools/common.py:549–558  ·  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

547 paths + os.environ.get(variable, "").split(os.pathsep))
548
549def 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()

Callers

nothing calls this directly

Calls 1

os_nameFunction · 0.85

Tested by

no test coverage detected