Hi,
If local_config.py is not configured it defaults to the home directory
Running freevo cache can fail on the contents of hidden directory's there
for example: ~/.kde/socket-servername
This patch will ignore hidden dirs in fileops.
Martijn.
diff -Naur freevo/src/util/fileops.py freevo2/src/util/fileops.py
--- freevo/src/util/fileops.py 2005-05-05 12:25:34.000000000 +0200
+++ freevo2/src/util/fileops.py 2005-06-15 18:09:23.583816168 +0200
@@ -68,6 +68,7 @@
try:
dirnames = [ dirname + dname for dname in os.listdir(dirname) if \
+ (not dname.startswith('.')) and
os.path.isdir(dirname + dname) and \
(softlinks or not os.path.islink(dirname + dname))]
except OSError:
@@ -224,8 +225,9 @@
# Note: subdirectories of that dir will still be searched
return result
for name in names:
- if not name in ('CVS', '.xvpics', '.thumbnails', '.pics',
- 'folder.fxd', 'lost+found'):
+ if (not name in ('CVS', '.xvpics', '.thumbnails', '.pics',
+ 'folder.fxd', 'lost+found')
+ and (not name.startswith('.'))):
fullpath = os.path.abspath(os.path.join(dirname, name))
result.append(fullpath)
return result