MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / copy_files

Function copy_files

utils/common.py:1793–1801  ·  view source on GitHub ↗
(source, dest, print_info=True)

Source from the content-addressed store, hash-verified

1791
1792
1793def copy_files(source, dest, print_info=True):
1794
1795 plys = [ply.split("/")[-1] for ply in glob.glob(os.path.join(source, "*.ply"))]
1796 plys = sorted(plys)
1797 for i, ply in enumerate(plys):
1798 source_path = os.path.join(source, ply)
1799 dest_path = os.path.join(dest, ply)
1800 shutil.copy(source_path, dest_path)
1801 if(print_info): print(f"---- {i}/{len(plys)} Copying : {dest_path} ----")
1802
1803def load_pcd_ascii(path):
1804 with open(path, 'r') as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected