parameters: (self, path, fobj)
docstring: Upload <data> to remote directory <path>
docstring_summary: Upload <data> to remote directory <path>
docstring_tokens: Upload <data > to remote directory <path >
function: def upload_fobj(self, path, fobj):
          """ Upload <data> to remote directory <path>"""
          try:
              if self.hash_check:
                  dstname = self._hash(fobj)
                  path = os.path.join(path, dstname)
              dstpath = self._get_realpath(path)
              self._upload(dstpath, fobj)
              if self.hash_check:
                  return dstname
          except Exception as e:
              raise self._Exception("{0}".format(e))
function_tokens: def upload_fobj ( self , path , fobj ) : try : if self . hash_check : dstname = self . _hash ( fobj ) path = os . path . join ( path , dstname ) dstpath = self . _get_realpath ( path ) self . _upload ( dstpath , fobj ) if self . hash_check : return dstname except Exception as e : raise self . _Exception ( "{0}" . format ( e ) )