MCPcopy Create free account
hub / github.com/EasyIME/PIME / copytree

Method copytree

python/cinbase/config.py:157–164  ·  view source on GitHub ↗
(slef, src, dst, symlinks=False, ignore=None)

Source from the content-addressed store, hash-verified

155 return None
156
157 def copytree(slef, src, dst, symlinks=False, ignore=None):
158 for item in os.listdir(src):
159 s = os.path.join(src, item)
160 d = os.path.join(dst, item)
161 if os.path.isdir(s):
162 shutil.copytree(s, d, symlinks, ignore)
163 else:
164 shutil.copy2(s, d)
165
166 # check if the config files are changed and relaod as needed
167 def update(self):

Callers 1

loadMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected