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

Method do_remove

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

Source from the content-addressed store, hash-verified

557 return p
558
559 def do_remove(self, args):
560 c, p = self._get_license(args)
561
562 path = self._get_path()
563 rcode = p['rcode']
564 licpath = os.path.join(path, rcode)
565 if os.path.exists(licpath):
566 shutil.rmtree(licpath)
567
568 c['licenses'].remove(p)
569 self._set_config(c)
570 return p
571
572 def do_list(self, args=None):
573 c = self._get_config()

Callers

nothing calls this directly

Calls 3

_get_licenseMethod · 0.95
_get_pathMethod · 0.80
_set_configMethod · 0.80

Tested by

no test coverage detected