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

Method rpath

printer.py:411–419  ·  view source on GitHub ↗
(self, path="")

Source from the content-addressed store, hash-verified

409
410 # get path with volume information
411 def rpath(self, path=""):
412 # warn if path contains volume information
413 if (path.startswith("%") or path.startswith("0:")) and not self.fuzz:
414 output().warning("Do not refer to disks directly, use chvol.")
415 # in fuzzing mode leave remote path as it is
416 if self.fuzz:
417 return path
418 # prepend volume information to virtual path
419 return self.vol + self.vpath(path)
420
421 # get normalized pathname
422 def normpath(self, path):

Callers 15

do_pwdMethod · 0.95
do_cdMethod · 0.95
do_getMethod · 0.95
do_putMethod · 0.95
do_appendMethod · 0.95
do_touchMethod · 0.95
do_catMethod · 0.95
dirlistMethod · 0.80
do_mkdirMethod · 0.80
deleteMethod · 0.80
dirlistMethod · 0.80
do_lsMethod · 0.80

Calls 3

vpathMethod · 0.95
outputClass · 0.90
warningMethod · 0.80

Tested by

no test coverage detected