def is_file(jottapath, JFS):
    """Check if a file exists on jottacloud"""
    log.debug("is_file %r", jottapath)
    try:
        jf = JFS.getObject(jottapath)
    except JFSNotFoundError:
        return False
    return isinstance(jf, JFSFile)
def is_file ( jottapath , JFS ) : log . debug ( "is_file %r" , jottapath ) try : jf = JFS . getObject ( jottapath ) except JFSNotFoundError : return False return isinstance ( jf , JFSFile )
Check if a file exists on jottacloud