mmengine.fileio.isfile — mmengine 0.10.7 documentation (original) (raw)

Shortcuts

mmengine.fileio.isfile(filepath, backend_args=None)[source]

Check whether a file path is a file.

Parameters:

Returns:

Return True if filepath points to a file, Falseotherwise.

Return type:

bool

Examples

filepath = '/path/of/file' isfile(filepath) True