MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _ensure_directory

Function _ensure_directory

tools/python-3.11.9-amd64/Lib/shutil.py:1230–1234  ·  view source on GitHub ↗

Ensure that the parent directory of `path` exists

(path)

Source from the content-addressed store, hash-verified

1228 del _UNPACK_FORMATS[name]
1229
1230def _ensure_directory(path):
1231 """Ensure that the parent directory of `path` exists"""
1232 dirname = os.path.dirname(path)
1233 if not os.path.isdir(dirname):
1234 os.makedirs(dirname)
1235
1236def _unpack_zipfile(filename, extract_dir):
1237 """Unpack zip `filename` to `extract_dir`

Callers 1

_unpack_zipfileFunction · 0.85

Calls 1

isdirMethod · 0.45

Tested by

no test coverage detected