def check_if_local_path(path):
    """
    Check if path is a local path, no matter file or directory.

    True:
        file:///home/admin/a.txt (standard path)
        /home/admin/a.txt (standard unix path)
        C:\\Users\\a.txt (standard windows path)
        C:/Users/a.txt (works as well)
        ./a.txt (relative path)
        a.txt (relative path)
    False:
        http://www.aliyun.com/a.txt
        http://www.aliyun.com/a.txt
        oss://aliyun/a.txt

    Args:
        path (str):

    Returns:
        True if path is a local path.
    """
    if path.startswith("file://"):
        return True
    return "://" not in path