MCPcopy Create free account
hub / github.com/certbot/certbot / create_hook

Function create_hook

certbot/src/certbot/_internal/tests/hook_test.py:458–464  ·  view source on GitHub ↗

Creates an executable file at the specified path. :param str file_path: path to create the file at

(file_path)

Source from the content-addressed store, hash-verified

456
457
458def create_hook(file_path):
459 """Creates an executable file at the specified path.
460
461 :param str file_path: path to create the file at
462
463 """
464 util.safe_open(file_path, mode="w", chmod=0o744).close()
465
466
467if __name__ == '__main__':

Callers 6

setUpMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
test_multipleMethod · 0.85
test_singleMethod · 0.85
test_ignore_tildeMethod · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…