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

Method paste

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

Creates a new file at path.

(self, path)

Source from the content-addressed store, hash-verified

19 self.__data = file(path, 'rb', 0).read()
20
21 def paste(self, path):
22 'Creates a new file at path.'
23 file(os.path.join(path, self.__name), 'wb', 0).write(self.__data)
24
25class Directory:
26

Callers 12

recipe-577101.jsFile · 0.45
recipe-577100.jsFile · 0.45
dropShadowFunction · 0.45
watermarkFunction · 0.45
pasteMethod · 0.45
recipe-442299.pyFile · 0.45
recipe-578585.pyFile · 0.45
make_contact_sheetFunction · 0.45
batchFunction · 0.45
convertFunction · 0.45
marksimilarFunction · 0.45
make_contact_sheetFunction · 0.45

Calls 2

writeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected