def _get_all_shortcuts(directories):
    """
    Args:
        directories (deque of str objects): All directories up to but excluding the function folder

    Returns:
        list: All possible shortcuts to the mcfunction path
        str: The mcfunction path as specified by minecraft

    Examples:
        >>> i = InFileConfig()
        >>> directories = deque(["ego", "floo_network", "init"])
        >>> i._get_all_shortcuts(directories)
        (['ego:floo_network/init', 'floo_network/init', 'init'], 'ego:floo_network/init')
    """
    # gets the mcfunction path
    mcfunction_path = directories.popleft() + ":"
    mcfunction_path += "/".join(directories)

    # shortcuts also has the mcfunction path to map to itself to pass the FunctionBuilder containment test
    shortcuts = []
    shortcuts.append(mcfunction_path)

    # gets all shortcuts to the full name
    while directories:
        shortcut = "/".join(directories)
        shortcuts.append(shortcut)
        directories.popleft()

    return shortcuts, mcfunction_path