def _dirmatch(path, matchwith):
    matchlen = len(matchwith)
    if (path.startswith(matchwith)
        and path[matchlen:matchlen + 1] in [os.sep, '']):
        return True
    return False
Check if the database is considered deleted
dataset/ETHPy150Open edwardgeorge/virtualenv-clone/clonevirtualenv.py/_dirmatch--crossover with--dataset/ETHPy150Open openstack/swift/swift/common/db.py/DatabaseBroker._is_deleted