MCPcopy
hub / github.com/RUB-NDS/PRET / do_mkdir

Method do_mkdir

postscript.py:220–226  ·  view source on GitHub ↗

Create remote directory: mkdir

(self, arg)

Source from the content-addressed store, hash-verified

218
219 # ------------------------[ mkdir <path> ]----------------------------
220 def do_mkdir(self, arg):
221 "Create remote directory: mkdir <path>"
222 if not arg:
223 arg = eval(input("Directory: "))
224 # writing to dir/file should automatically create dir/
225 # .dirfile is not deleted as empty dirs are not listed
226 self.put(self.rpath(arg) + c.SEP + '.dirfile', '')
227
228 # ------------------------[ get <file> ]------------------------------
229 def get(self, path, size=None):

Callers

nothing calls this directly

Calls 2

putMethod · 0.95
rpathMethod · 0.80

Tested by

no test coverage detected