Shortcuts

mmeval.utils.is_filepath

mmeval.utils.is_filepath(x)[source]

Check if the given object is Path-like.

Parameters

x (object) – Any object.

Returns

Returns True if the given is a str or pathlib.Path. Otherwise, returns False.

Return type

bool