(self, path, fobj)
Upload <data> to remote directory <path>
Upload <data> to remote directory <path>
Upload <data > to remote directory <path >
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))
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 ) )