~verterok/ubuntuone-client/fix-435137

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/events_nanny.py

  • Committer: Tarmac
  • Author(s): facundo at com
  • Date: 2009-10-01 18:21:35 UTC
  • mfrom: (225.3.3 move-over-conflict)
  • Revision ID: john.lenton@canonical.com-20091001182135-r37pyh7fsrll4wdy
This allows fix the .conflict file moving it over the old one (or rename it to no conflict).

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        fix(self._blocked)
71
71
 
72
72
    def handle_FS_FILE_DELETE(self, path):
73
 
        '''Receives DELETE to discard possible blocks.'''
 
73
        '''Receives DELETE to discard possible blocks and open counts.'''
 
74
        if path in self._opened:
 
75
            del self._opened[path]
 
76
        if path in self._blocked:
 
77
            del self._blocked[path]
 
78
 
 
79
    def handle_FS_FILE_CREATE(self, path):
 
80
        '''Receives CREATE to discard possible blocks and open counts.'''
 
81
        if path in self._opened:
 
82
            del self._opened[path]
74
83
        if path in self._blocked:
75
84
            del self._blocked[path]
76
85