Update of /cvsroot/freevo/freevo/src In directory sc8-pr-cvs1:/tmp/cvs-serv18211
Modified Files: directory.py Log Message: Prevent a crash if the current directory is removed... just silently move up to the previous directory. (This is identical to the previous 1.4 behaviour) Index: directory.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/directory.py,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** directory.py 12 Dec 2003 19:59:33 -0000 1.76 --- directory.py 17 Dec 2003 16:43:59 -0000 1.77 *************** *** 10,13 **** --- 10,19 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.77 2003/12/17 16:43:59 outlyer + # Prevent a crash if the current directory is removed... just silently move + # up to the previous directory. + # + # (This is identical to the previous 1.4 behaviour) + # # Revision 1.76 2003/12/12 19:59:33 dischi # some speed enhancements *************** *** 887,893 **** if not self.dir: return ! if not force and config.DIRECTORY_USE_STAT_FOR_CHANGES and \ vfs.stat(self.dir)[stat.ST_MTIME] == self.last_time: ! return True try: --- 893,903 ---- if not self.dir: return ! try: ! if not force and config.DIRECTORY_USE_STAT_FOR_CHANGES and \ vfs.stat(self.dir)[stat.ST_MTIME] == self.last_time: ! return True ! except IOError: ! # the directory is gone ! _debug_('Dirwatcher: unable to read directory %s' % self.dir,1) try: ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog