|
|
@@ -65,7 +65,7 @@ class FSObject(object): |
|
|
|
try: |
|
|
|
nstat = os.stat(self.FSpath) |
|
|
|
if statcmp(self.pstat, nstat): |
|
|
|
return self |
|
|
|
return |
|
|
|
|
|
|
|
self.pstat = nstat |
|
|
|
self.doUpdate() |
|
|
@@ -74,12 +74,10 @@ class FSObject(object): |
|
|
|
if x.errno in (errno.ENOENT, errno.ENOTDIR, errno.EPERM, ): |
|
|
|
# We can't access it anymore, delete it |
|
|
|
self.cd.delItem(self.id) |
|
|
|
return None |
|
|
|
return |
|
|
|
else: |
|
|
|
raise |
|
|
|
|
|
|
|
return self |
|
|
|
|
|
|
|
def doUpdate(self): |
|
|
|
raise NotImplementedError |
|
|
|
|
|
|
|