Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18157
Modified Files:
cache.py
Log Message:
also remove covers in vfs if directory is gone
Index: cache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/cache.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** cache.py 5 Feb 2004 20:39:11 -0000 1.18
--- cache.py 7 Feb 2004 13:08:41 -0000 1.19
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.19 2004/02/07 13:08:41 dischi
+ # also remove covers in vfs if directory is gone
+ #
# Revision 1.18 2004/02/05 20:39:11 dischi
# check mmpython cache version
***************
*** 120,127 ****
if not os.path.isdir(file[len(config.OVERLAY_DIR):]) and not \
file.startswith(config.OVERLAY_DIR + '/disc'):
! if os.path.isfile(os.path.join(file, 'mmpython.cache')):
! os.unlink(os.path.join(file, 'mmpython.cache'))
! if os.path.isfile(os.path.join(file, 'freevo.cache')):
! os.unlink(os.path.join(file, 'freevo.cache'))
if not os.listdir(file):
os.rmdir(file)
--- 123,130 ----
if not os.path.isdir(file[len(config.OVERLAY_DIR):]) and not \
file.startswith(config.OVERLAY_DIR + '/disc'):
! for metafile in ('cover.png', 'cover.png.raw', 'cover.jpg',
'cover.jpg.raw',
! 'mmpython.cache', 'freevo.cache'):
! if os.path.isfile(os.path.join(file, metafile)):
! os.unlink(os.path.join(file, metafile))
if not os.listdir(file):
os.rmdir(file)
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog