MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / copy_files

Method copy_files

task.py:358–371  ·  view source on GitHub ↗
(self, src_dir, dst_dir)

Source from the content-addressed store, hash-verified

356 self.copy_files(tmp_C_path, _C_path)
357
358 def copy_files(self, src_dir, dst_dir):
359 import shutil
360
361 os.makedirs(dst_dir, exist_ok=True)
362 for root, dirs, files in os.walk(src_dir):
363 rel_path = os.path.relpath(root, src_dir)
364 dest_path = os.path.join(dst_dir, rel_path)
365
366 os.makedirs(dest_path, exist_ok=True)
367
368 for file in files:
369 src_file = os.path.join(root, file)
370 dest_file = os.path.join(dest_path, file)
371 shutil.copy(src_file, dest_file)
372
373
374class BuildDocTask(Task):

Callers 1

runMethod · 0.95

Calls 2

walkMethod · 0.80
copyMethod · 0.80

Tested by

no test coverage detected