[CMF-checkins] CVS: CMF/CMFCore - DirectoryView.py:1.22

Chris Withers chrisw@nipltd.com
Tue, 14 May 2002 15:17:47 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv9500

Modified Files:
	DirectoryView.py 
Log Message:
clarify some comments, add a test for a suspected bgu which turned otu not to be a bug.

=== CMF/CMFCore/DirectoryView.py 1.21 => 1.22 ===
     return n
 
+# This walker is only used on the Win32 version of _changed
 def _walker (listdir, dirname, names):
     names[:]=filter(_filter,names)
     listdir.extend(names)
@@ -124,7 +125,7 @@
                 fp = expandpath(self.filepath)
                 mtime = stat(fp)[8]
                 # some Windows directories don't change mtime 
-                # when a file in them changes :-(
+                # when a file is added to or deleted from them :-(
                 # So keep a list of files as well, and see if that
                 # changes
                 path.walk(fp,_walker,filelist)
@@ -136,7 +137,7 @@
                     ERROR,
                     'Error checking for directory modification',
                     error=sys.exc_info())
-                
+
             if mtime != self._v_last_read or filelist != self._v_last_filelist:
                 self._v_last_read = mtime
                 self._v_last_filelist = filelist