mmengine.fileio.join_path¶
- mmengine.fileio.join_path(filepath, *filepaths, backend_args=None)[源代码]¶
Concatenate all file paths.
Join one or more filepath components intelligently. The return value is the concatenation of filepath and any members of *filepaths.
- 参数:
- 返回:
The result of concatenation.
- 返回类型:
示例
>>> filepath1 = '/path/of/dir1' >>> filepath2 = 'dir2' >>> filepath3 = 'path/of/file' >>> join_path(filepath1, filepath2, filepath3) '/path/of/dir/dir2/path/of/file'