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

def ubuntuone::syncdaemon::sync::SyncStateMachineRunner::new_local_file (   self,
  event,
  parms,
  path 
)

a new local file was created

Definition at line 550 of file sync.py.

00550                                                 :
        """a new local file was created"""
        # XXX: lucio.torre: we should use markers here
        parent_path = os.path.dirname(path)
        parent = self.m.fs.get_by_path(parent_path)
        parent_id = parent.node_id or MDMarker(parent.mdid)
        share_id = parent.share_id
        self.m.fs.create(path=path, share_id=share_id, is_dir=False)
        self.key.set(local_hash=empty_hash)
        self.key.set(server_hash=empty_hash)
        name = os.path.basename(path)
        marker = MDMarker(self.key.get_mdid())
        self.m.action_q.make_file(share_id, parent_id, name, marker)

    def new_local_file_created(self, event, parms, new_id):


Generated by  Doxygen 1.6.0   Back to index