Logo Search packages:      
Sourcecode: ubuntuone-client version File versions

def ubuntuone::syncdaemon::sync::SyncStateMachineRunner::put_file (   self,
  event,
  params,
  hash,
  crc32,
  size,
  stat 
)

upload the file to the server.

Definition at line 594 of file sync.py.

00594                                                               :
        """upload the file to the server."""
        previous_hash = self.key['server_hash']
        self.key.set(local_hash=hash)
        self.m.fs.update_stat(self.key.get_mdid(), stat)
        self.m.action_q.upload(share_id=self.key['share_id'],
            node_id=self.key['node_id'], previous_hash=previous_hash,
            hash=hash, crc32=crc32, size=size,
            fileobj_factory=self.key.open_file)

    def converges_to_server(self, event, params, hash, crc32, size, stat):


Generated by  Doxygen 1.6.0   Back to index