MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / copy_tree

Function copy_tree

windows/setup.py:234–242  ·  view source on GitHub ↗

Copy a directory tree

(src, dst)

Source from the content-addressed store, hash-verified

232
233
234def copy_tree(src, dst):
235 """Copy a directory tree"""
236 src = os.path.abspath(src)
237 if not os.path.exists(src):
238 logger.warning('copytree: %s does not exist', src)
239 return
240 logger.info('copying %s to %s', src, dst)
241 # copytree() preserves file date
242 shutil.copytree(src, dst, dirs_exist_ok=True)
243
244
245def count_size_improvement(func):

Callers 2

buildFunction · 0.85
package_portableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected