MCPcopy Index your code
hub / github.com/python/cpython / copy

Method copy

Lib/pathlib/__init__.py:1294–1302  ·  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

1292 return target
1293
1294 def copy(self, target, **kwargs):
1295 """
1296 Recursively copy this file or directory tree to the given destination.
1297 """
1298 if not hasattr(target, 'with_segments'):
1299 target = self.with_segments(target)
1300 ensure_distinct_paths(self, target)
1301 target._copy_from(self, **kwargs)
1302 return target.joinpath() # Empty join to ensure fresh metadata.
1303
1304 def copy_into(self, target_dir, **kwargs):
1305 """

Callers 11

copy_intoMethod · 0.95
moveMethod · 0.95
with_nameMethod · 0.45
get_stringsMethod · 0.45
hFunction · 0.45
d3.min.jsFile · 0.45
bFunction · 0.45
leFunction · 0.45
srFunction · 0.45

Calls 4

ensure_distinct_pathsFunction · 0.90
with_segmentsMethod · 0.45
_copy_fromMethod · 0.45
joinpathMethod · 0.45

Tested by

no test coverage detected