mmengine.fileio.copytree_from_local¶
- mmengine.fileio.copytree_from_local(src, dst, backend_args=None)[源代码]¶
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory.
备注
If the backend is the instance of LocalBackend, it does the same thing with
copytree()
.- 参数:
- 返回:
The destination directory.
- 返回类型:
示例
>>> src = '/path/of/dir' >>> dst = 's3://openmmlab/mmengine/dir' >>> copyfile_from_local(src, dst) 's3://openmmlab/mmengine/dir'