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

def ubuntuone::syncdaemon::sync::SyncStateMachineRunner::reput_file (   self,
  event,
  param,
  hash,
  crc32,
  size,
  stat 
)

put the file again.

Definition at line 621 of file sync.py.

00621                                                                :
        """put the file again."""
        self.m.action_q.cancel_upload(share_id=self.key['share_id'],
                            node_id=self.key['node_id'])
        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 server_file_now_matches(self, event, params, hash):


Generated by  Doxygen 1.6.0   Back to index