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

Method get_sep

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

Source from the content-addressed store, hash-verified

378
379 # get separator
380 def get_sep(self, path):
381 # don't add separator between ps volume and filename
382 if self.mode == "ps" and re.search("^%.*%$", path):
383 return ""
384 # add separator if we have to deal with a directory
385 return c.SEP if (path or self.cwd or self.traversal) else ""
386
387 # --------------------------------------------------------------------
388 # get path without traversal and cwd information

Callers 3

fswalkMethod · 0.80
dirlistMethod · 0.80
do_lsMethod · 0.80

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected