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

Method touch

test/BoostBuild.py:377–385  ·  view source on GitHub ↗
(self, names, wait=True)

Source from the content-addressed store, hash-verified

375 os.utime(dst_name, (stats.st_atime, stats.st_mtime))
376
377 def touch(self, names, wait=True):
378 if isstr(names):
379 names = [names]
380 for name in names:
381 path = self.native_file_name(name)
382 if wait:
383 self.__ensure_newer_than_last_build(path)
384 else:
385 os.utime(path, None)
386
387 def rm(self, names):
388 if not type(names) == list:

Callers 15

test_update_file_linkFunction · 0.95
test_basicFunction · 0.95
test_default_orderFunction · 0.95
test_default_order_mixedFunction · 0.95
test_basicFunction · 0.95
test_order1Function · 0.95
test_order2Function · 0.95
test_order_graphFunction · 0.95
stage.pyFile · 0.80

Calls 3

native_file_nameMethod · 0.95
isstrFunction · 0.85

Tested by 11

test_update_file_linkFunction · 0.76
test_basicFunction · 0.76
test_default_orderFunction · 0.76
test_default_order_mixedFunction · 0.76
test_basicFunction · 0.76
test_order1Function · 0.76
test_order2Function · 0.76
test_order_graphFunction · 0.76