MCPcopy Create free account
hub / github.com/dashingsoft/pyarmor-webui / do_new

Method do_new

handler.py:135–140  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

133 self.name = 'directory'
134
135 def do_new(self, args):
136 self._check_arg('path', args)
137
138 if not os.path.exists(args):
139 os.makedirs(args)
140 return os.path.abspath(args)
141
142 def do_remove(self, args):
143 self._check_arg('path', args, invalids=['.', '/'])

Callers

nothing calls this directly

Calls 1

_check_argMethod · 0.80

Tested by

no test coverage detected