mmengine.fileio.remove¶
- mmengine.fileio.remove(filepath, backend_args=None)[源代码]¶
Remove a file.
- 参数:
- 抛出:
FileNotFoundError – If filepath does not exist, an FileNotFoundError will be raised.
IsADirectoryError – If filepath is a directory, an IsADirectoryError will be raised.
- 返回类型:
None
示例
>>> filepath = '/path/of/file' >>> remove(filepath)