MCPcopy 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
29def 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
35def write_default_config(source, destination, overwrite=False):

Callers 3

initialize_loggingMethod · 0.90
write_default_configFunction · 0.85

Calls

no outgoing calls

Tested by 1