MCPcopy Index your code
hub / github.com/dbcli/pgcli / ensure_dir_exists

Function ensure_dir_exists

pgcli/config.py:32–34  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

30
31
32def ensure_dir_exists(path):
33 parent_dir = expanduser(dirname(path))
34 os.makedirs(parent_dir, exist_ok=True)
35
36
37def write_default_config(source, destination, overwrite=False):

Callers 5

test_ensure_file_parentFunction · 0.90
test_ensure_existing_dirFunction · 0.90
write_default_configFunction · 0.85
initialize_loggingMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_ensure_file_parentFunction · 0.72
test_ensure_existing_dirFunction · 0.72