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

Method tpath

printer.py:389–392  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

387 # --------------------------------------------------------------------
388 # get path without traversal and cwd information
389 def tpath(self, path):
390 # remove leading separators
391 path = path.lstrip(c.SEP)
392 return self.vol + self.normpath(path)
393
394 # get path without volume and traversal information
395 def cpath(self, path):

Callers 1

do_traversalMethod · 0.95

Calls 1

normpathMethod · 0.95

Tested by

no test coverage detected