MCPcopy Index your code
hub / github.com/RustPython/RustPython / copy

Method copy

Lib/pathlib/__init__.py:1096–1104  ·  view source on GitHub ↗

Recursively copy this file or directory tree to the given destination.

(self, target, **kwargs)

Source from the content-addressed store, hash-verified

1094 return target
1095
1096 def copy(self, target, **kwargs):
1097 """
1098 Recursively copy this file or directory tree to the given destination.
1099 """
1100 if not hasattr(target, 'with_segments'):
1101 target = self.with_segments(target)
1102 ensure_distinct_paths(self, target)
1103 target._copy_from(self, **kwargs)
1104 return target.joinpath() # Empty join to ensure fresh metadata.
1105
1106 def copy_into(self, target_dir, **kwargs):
1107 """

Callers 3

copy_intoMethod · 0.95
moveMethod · 0.95
with_nameMethod · 0.45

Calls 5

ensure_distinct_pathsFunction · 0.90
hasattrFunction · 0.85
with_segmentsMethod · 0.45
_copy_fromMethod · 0.45
joinpathMethod · 0.45

Tested by

no test coverage detected