Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbcli/mssql-cli
/ ensure_dir_exists
Function
ensure_dir_exists
mssqlcli/config.py:29–32 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
27
28
29
def
ensure_dir_exists(path):
30
parent_dir = expanduser(dirname(path))
31
if
not os.path.exists(parent_dir):
32
os.makedirs(parent_dir)
33
34
35
def
write_default_config(source, destination, overwrite=False):
Callers
3
initialize_logging
Method · 0.90
test_ensure_existing_dir
Method · 0.90
write_default_config
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_ensure_existing_dir
Method · 0.72