def pathsplit(path):
    try:
        (dirname, basename) = path.rsplit("/", 1)
    except ValueError:
        return ("", path)
    else:
        return (dirname, basename)
Returns True if the sequence does not have length zero.
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/index.py/pathsplit--crossover with--dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.non_empty