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

Method touch

pex/common.py:814–826  ·  view source on GitHub ↗

Perform 'touch' on ``chroot/dst`` with optional label. Has similar exceptional cases as Chroot.copy

(
        self,
        dst,  # type: str
        label=None,  # type: Optional[str]
    )

Source from the content-addressed store, hash-verified

812 chmod_plus_x(wp.name)
813
814 def touch(
815 self,
816 dst, # type: str
817 label=None, # type: Optional[str]
818 ):
819 # type: (...) -> None
820 """Perform 'touch' on ``chroot/dst`` with optional label.
821
822 Has similar exceptional cases as Chroot.copy
823 """
824 dst = self._normalize(dst)
825 self._tag(dst, label, compress=False)
826 touch(os.path.join(self.chroot, dst))
827
828 def get(self, label):
829 # type: (Optional[str]) -> Set[str]

Callers 2

_precompile_sourceMethod · 0.80
_copy_or_linkMethod · 0.80

Calls 4

_normalizeMethod · 0.95
_tagMethod · 0.95
touchFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected