~mandel/ubuntuone-client/add-virtual-watches

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/main.py

  • Committer: manuel.delapena at canonical
  • Date: 2012-01-16 12:16:27 UTC
  • mfrom: (1176.1.3 ubuntuone-client)
  • Revision ID: manuel.delapena@canonical.com-20120116121627-2tbt1ed9d43m21zx
Made code more efficient by using sets instead of collections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from twisted.internet import defer, reactor, task
23
23
 
24
 
from ubuntu_sso.xdg_base_directory import native_path
 
24
from ubuntu_sso.xdg_base_directory import native_path, xdg_home
25
25
from ubuntuone.syncdaemon import (
26
26
    action_queue,
27
27
    config,
249
249
        """Do the server rescan."""
250
250
        return self.vm.server_rescan()
251
251
 
 
252
    def get_homedir(self):
 
253
        """Return the home dir point."""
 
254
        return xdg_home
 
255
 
252
256
    def get_rootdir(self):
253
257
        """Return the base dir/mount point."""
254
258
        return self.root_dir