MCPcopy Index your code
hub / github.com/dashingsoft/pyarmor-webui / do_remove

Method do_remove

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

Source from the content-addressed store, hash-verified

140 return os.path.abspath(args)
141
142 def do_remove(self, args):
143 self._check_arg('path', args, invalids=['.', '/'])
144 self._check_path(args)
145
146 os.rmdir(args)
147 return os.path.abspath(args)
148
149 def do_list(self, args):
150 path = os.path.expandvars(args.get('path', '/'))

Callers

nothing calls this directly

Calls 2

_check_argMethod · 0.80
_check_pathMethod · 0.80

Tested by

no test coverage detected