def path_join(*parts):
    # Normalize path converting any os.sep as needed
    parts = [os.path.normpath(p) for p in parts]

    root = parts.pop(0)
    if not parts:
        return root

    if is_windows():
        if len(root) == 1:
            root += ':'
        root = root.rstrip(os.sep) + os.sep

    return os.path.normpath(os.path.join(
        root, *[p.lstrip(os.sep) for p in parts]
    ))
Returns available storage container that can fit `item`. Returns False if none is found.
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/path_join--crossover with--dataset/ETHPy150Open flags/Reactor-3/life.py/can_put_item_in_storage