pgcontents/query.py
def file_exists(db, user_id, path):
    """
    Check if a file exists.
    """
    try:
        get_file(
            db,
            user_id,
            path,
            include_content=False,
            decrypt_func=unused_decrypt_func,
        )
        return True
    except NoSuchFile:
        return False
def file_exists(db, user_id, path):
    """
    Check if a file exists.
    """
    try:
        get_file(
            db,
            user_id,
            path,
            include_content=False,
            decrypt_func=unused_decrypt_func,
        )
        return True
    except NoSuchFile:
        return False
Check if a file exists.