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

def ubuntuone::syncdaemon::sync::SyncStateMachineRunner::new_file (   self,
  event,
  params,
  share_id,
  node_id,
  parent_id,
  name 
)

create a local file.

Definition at line 465 of file sync.py.

00465                                                                          :
        """create a local file."""
        mdobj = self.m.fs.get_by_node_id(share_id, parent_id)
        path = os.path.join(self.m.fs.get_abspath(share_id, mdobj.path), name)
        self.m.fs.create(path=path, share_id=share_id, is_dir=False)
        self.m.fs.set_node_id(path, node_id)
        self.key.set(server_hash="")
        self.key.set(local_hash="")
        self.key.make_file()
        self.m.action_q.query([(share_id, node_id, "")])

    def new_file_on_server_with_local(self, event, params, share_id,


Generated by  Doxygen 1.6.0   Back to index