MCPcopy Create free account
hub / github.com/Geeoon/asploit / _Base__rm

Method _Base__rm

src/NodeExploitProcessor.py:286–296  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

284 @brief See base class for details.
285 """
286 def _Base__rm(self, options: str):
287 if len(options) == 0:
288 raise CommandException("Specify a filename.")
289 out = self.__eval(f"try{{fs.rmSync('{options}',"
290 f"{{recursive:true,force:true}});"
291 f"r.setHeader('{self.header}', "
292 f"'Done.');}}catch(e){{"
293 f"r.setHeader('{self.header}','Failed.');"
294 f"}}"
295 f"r.end();")
296 print(out)
297
298 """
299 @brief See base class for details.

Callers

nothing calls this directly

Calls 2

__evalMethod · 0.95
CommandExceptionClass · 0.85

Tested by

no test coverage detected