def get_parent(fullpath):
    parent = "/".join(fullpath.split('/')[:-1])
    if parent == '':  # a top-level hack
        parent = '/'
    return parent
Parse the string and return a path corresponding to the parent.
dataset/ETHPy150Open livenson/vcdm/src/vcdm/server/cdmi/generic.py/get_parent