def globpath(filepath: str) ->str:
    """convert a filepath to a glob path, ['/'|''] to '.'

    filepath {str} -- filepath to glob

    return {str} -- new globpath
    """
    glob = filepath.replace('/', '.').replace('\\', '.')
    while glob[0] == '.':
        glob = glob[1:]
    return glob
