MCPcopy Create free account
hub / github.com/ActiveState/code / paste

Method paste

recipes/Python/496861_zdirectorypy/recipe-496861.py:40–46  ·  view source on GitHub ↗

Creates a new directory at path.

(self, path)

Source from the content-addressed store, hash-verified

38 self.__data.append(File(path_name))
39
40 def paste(self, path):
41 'Creates a new directory at path.'
42 if self.__name:
43 path = os.path.join(path, self.__name)
44 os.mkdir(path)
45 for item in self.__data:
46 item.paste(path)
47
48################################################################################
49

Callers

nothing calls this directly

Calls 3

mkdirMethod · 0.80
joinMethod · 0.45
pasteMethod · 0.45

Tested by

no test coverage detected