Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
32
def
ensure_dir_exists(path):
33
parent_dir = expanduser(dirname(path))
34
os.makedirs(parent_dir, exist_ok=True)
35
36
37
def
write_default_config(source, destination, overwrite=False):
Callers
5
test_ensure_file_parent
Function · 0.90
test_ensure_existing_dir
Function · 0.90
test_ensure_other_create_error
Function · 0.90
write_default_config
Function · 0.85
initialize_logging
Method · 0.85
Calls
no outgoing calls
Tested by
3
test_ensure_file_parent
Function · 0.72
test_ensure_existing_dir
Function · 0.72
test_ensure_other_create_error
Function · 0.72