MCPcopy
hub / github.com/pex-tool/pex / _normalize

Method _normalize

pex/common.py:688–693  ·  view source on GitHub ↗
(self, dst)

Source from the content-addressed store, hash-verified

686 return self.chroot
687
688 def _normalize(self, dst):
689 # type: (str) -> str
690 dst = os.path.normpath(dst)
691 if dst.startswith(os.sep) or dst.startswith(".."):
692 raise self.Error("Destination path is not a relative path!")
693 return dst
694
695 def _check_tag(
696 self,

Callers 5

copyMethod · 0.95
linkMethod · 0.95
symlinkMethod · 0.95
writeMethod · 0.95
touchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected