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

Method cpath

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

Source from the content-addressed store, hash-verified

393
394 # get path without volume and traversal information
395 def cpath(self, path):
396 # generate virtual path on remote device
397 path = c.SEP.join((self.cwd, path))
398 # remove leading separators
399 path = path.lstrip(c.SEP)
400 return self.normpath(path)
401
402 # get path without volume information
403 def vpath(self, path):

Callers 2

do_cdMethod · 0.95
set_cwdMethod · 0.95

Calls 1

normpathMethod · 0.95

Tested by

no test coverage detected