MCPcopy Create free account
hub / github.com/apache/httpd / await_file

Method await_file

test/modules/md/md_env.py:538–545  ·  view source on GitHub ↗
(self, fpath, timeout=60)

Source from the content-addressed store, hash-verified

536 time.sleep(0.1)
537
538 def await_file(self, fpath, timeout=60):
539 try_until = time.time() + timeout
540 while True:
541 if time.time() >= try_until:
542 return False
543 if os.path.isfile(fpath):
544 return True
545 time.sleep(0.1)
546
547 def check_file_permissions(self, domain):
548 dpath = os.path.join(self.store_dir, 'domains', domain)

Callers 6

test_md_901_001Method · 0.80
test_md_901_004Method · 0.80
test_md_901_011Method · 0.80
test_md_901_020Method · 0.80
test_md_901_030Method · 0.80
test_md_901_040Method · 0.80

Calls

no outgoing calls

Tested by 6

test_md_901_001Method · 0.64
test_md_901_004Method · 0.64
test_md_901_011Method · 0.64
test_md_901_020Method · 0.64
test_md_901_030Method · 0.64
test_md_901_040Method · 0.64