def zipfile_common_prefix_dir(source):
    zf = zipfile.ZipFile(source)
    prefix = common_prefix(zf.namelist())
    if "/" in prefix:
        return prefix.rsplit("/",1)[0] + "/"
    else:
        return ""
RESTful CRUD controller
dataset/ETHPy150Open cloudmatrix/esky/esky/util.py/zipfile_common_prefix_dir--crossover with--dataset/ETHPy150Open sahana/eden/controllers/org.py/office