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

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

a new local dir was created

Definition at line 569 of file sync.py.

00569                                                :
        """a new local dir 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=True)
        name = os.path.basename(path)
        marker = MDMarker(self.key.get_mdid())
        self.m.action_q.make_dir(share_id, parent_id, name, marker)
        # pylint: disable-msg=W0704
        try:
            self.m.lr.scan_dir(path)
        except ValueError:
            pass #it was gone when lr got it

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


Generated by  Doxygen 1.6.0   Back to index