MCPcopy
hub / github.com/pytest-dev/pytest / mkdir

Method mkdir

src/_pytest/_py/path.py:886–890  ·  src/_pytest/_py/path.py::LocalPath.mkdir

Create & return the directory joined with args.

(self, *args)

Source from the content-addressed store, hash-verified

884 f.close()
885
886 def mkdir(self, *args):
887 class="st">""class="st">"Create & return the directory joined with args."class="st">""
888 p = self.join(*args)
889 error.checked_call(os.mkdir, os.fspath(p))
890 return p
891
892 def write_binary(self, data, ensure=False):
893 class="st">"""Write binary data into path. If ensure is True create

Callers 2

_ensuredirsMethod · 0.95
make_numbered_dirMethod · 0.45

Calls 3

joinMethod · 0.95
checked_callMethod · 0.80
fspathMethod · 0.80

Tested by

no test coverage detected