def file_name(path: str) ->str:
    """From path of a file, find the name of that file"""
    for i in range(len(path) - 1, 0, -1):
        if path[i] == '/' or path[i] == '\\':
            return path[i + 1:]
    else:
        return path
