MCPcopy Create free account
hub / github.com/twisted/twisted / clonePath

Method clonePath

src/twisted/python/filepath.py:827–834  ·  view source on GitHub ↗

Make an object of the same type as this FilePath, but with path of C{path}.

(
        self, path: OtherAnyStr, alwaysCreate: bool = False
    )

Source from the content-addressed store, hash-verified

825 ...
826
827 def clonePath(
828 self, path: OtherAnyStr, alwaysCreate: bool = False
829 ) -> FilePath[OtherAnyStr]:
830 """
831 Make an object of the same type as this FilePath, but with path of
832 C{path}.
833 """
834 return FilePath(path)
835
836 def __getstate__(self) -> dict[str, object]:
837 """

Callers 11

asBytesModeMethod · 0.95
asTextModeMethod · 0.95
childMethod · 0.95
preauthChildMethod · 0.95
childSearchPreauthMethod · 0.95
realpathMethod · 0.95
siblingExtensionMethod · 0.95
globChildrenMethod · 0.95
parentMethod · 0.95
temporarySiblingMethod · 0.95

Calls 1

FilePathClass · 0.85

Tested by

no test coverage detected