mmengine.fileio.copytree_from_local¶
- mmengine.fileio.copytree_from_local(src, dst, backend_args=None)[source]¶
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory.
Note
If the backend is the instance of LocalBackend, it does the same thing with
copytree()
.- Parameters:
- Returns:
The destination directory.
- Return type:
Examples
>>> src = '/path/of/dir' >>> dst = 's3://openmmlab/mmengine/dir' >>> copyfile_from_local(src, dst) 's3://openmmlab/mmengine/dir'