~ubuntu-branches/ubuntu/precise/ubuntuone-client/precise-201112142106

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/filesystem_notifications.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2011-08-25 16:11:47 UTC
  • mfrom: (1.1.54 upstream)
  • Revision ID: james.westby@ubuntu.com-20110825161147-v6zedpznh2evnurj
Tags: 1.7.2-0ubuntu1
* New upstream release.
  - Work correctly with static and GI bindings of gobject (LP: #829186)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import os
20
20
import re
21
21
 
 
22
from ubuntuone.platform import path_exists
22
23
from ubuntuone.syncdaemon.mute_filter import MuteFilter
23
24
from ubuntuone import logger
24
25
# our logging level
96
97
        # check first if the platform code knows hat to do with it
97
98
        if not self.platform_is_ignored(path):
98
99
            # check if we can read
99
 
            if os.path.exists(path) and not os.access(path, os.R_OK):
 
100
            if path_exists(path) and not os.access(path, os.R_OK):
100
101
                self.log.warning("Ignoring path as we don't have enough "
101
102
                                 "permissions to track it: %r", path)
102
103
                return True