Author: duncan
Date: Fri Dec 29 15:12:02 2006
New Revision: 8858
Modified:
branches/rel-1/freevo/src/util/fileops.py
Log:
[ 1623960 ] Traceback with directory not found
Fix applied
Modified: branches/rel-1/freevo/src/util/fileops.py
==============================================================================
--- branches/rel-1/freevo/src/util/fileops.py (original)
+++ branches/rel-1/freevo/src/util/fileops.py Fri Dec 29 15:12:02 2006
@@ -125,9 +125,12 @@
Return the number of total bytes available on the file system
pointed to by path.
"""
-
- s = os.statvfs(path)
- return s[statvfs.F_BLOCKS] * long(s[statvfs.F_BSIZE])
+ try:
+ s = os.statvfs(path)
+ return s[statvfs.F_BLOCKS] * long(s[statvfs.F_BSIZE])
+ except OSError, e:
+ print '\"%s\": %s' % (path, e)
+ return 0
def touch(file):
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog