Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8471/src/util

Modified Files:
        thumbnail.py 
Log Message:
Check for maybe missing vfs dir


Index: thumbnail.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/thumbnail.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** thumbnail.py        7 Sep 2004 18:52:51 -0000       1.1
--- thumbnail.py        15 Sep 2004 21:07:39 -0000      1.2
***************
*** 17,20 ****
--- 17,23 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.2  2004/09/15 21:07:39  dischi
+ # Check for maybe missing vfs dir
+ #
  # Revision 1.1  2004/09/07 18:52:51  dischi
  # move thumbnail to extra file
***************
*** 127,131 ****
      Create a thumbnail for the given filename in the vfs.
      """
!     print 'create', filename
      if filename.endswith('.jpg'):
          thumb = vfs.getoverlay(filename[:-3] + 'thumb.jpg')
--- 130,135 ----
      Create a thumbnail for the given filename in the vfs.
      """
!     if not os.path.isdir(os.path.dirname(vfs.getoverlay(filename))):
!         os.makedirs(os.path.dirname(vfs.getoverlay(filename)))
      if filename.endswith('.jpg'):
          thumb = vfs.getoverlay(filename[:-3] + 'thumb.jpg')



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to