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

Method touch

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

Source from the content-addressed store, hash-verified

364 os.utime(dst_name, (stats.st_atime, stats.st_mtime))
365
366 def touch(self, names, wait=True):
367 if names.__class__ is str:
368 names = [names]
369 for name in names:
370 path = self.native_file_name(name)
371 if wait:
372 self.__ensure_newer_than_last_build(path)
373 else:
374 os.utime(path, None)
375
376 def rm(self, names):
377 if not type(names) == types.ListType:

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 2

native_file_nameMethod · 0.95

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