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

Method do_traversal

printer.py:343–349  ·  view source on GitHub ↗

Set path traversal: traversal

(self, arg)

Source from the content-addressed store, hash-verified

341
342 # ------------------------[ traversal <path> ]------------------------
343 def do_traversal(self, arg):
344 "Set path traversal: traversal <path>"
345 if not arg or self.dir_exists(self.tpath(arg)):
346 self.set_traversal(arg)
347 print(("Path traversal " + ("" if arg else "un") + "set."))
348 else:
349 print("Cannot use this path traversal.")
350
351 # set path traversal
352 def set_traversal(self, traversal=""):

Callers

nothing calls this directly

Calls 3

tpathMethod · 0.95
set_traversalMethod · 0.95
dir_existsMethod · 0.45

Tested by

no test coverage detected