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