Shane Wegner wrote:
> Hey all,
>
> Is there any way to exclude a directory from showing up in
> audio_items, video_items and image_items. In particular I
> don't want lost+found directory showing up. I suppose that
> particular case could be hardcoded into FV but if there is
> an option available...
>
Will you try the attached patch to exclude lost+found?
Duncan
Index: src/util/vfs.py
===================================================================
--- src/util/vfs.py (revision 11409)
+++ src/util/vfs.py (working copy)
@@ -190,11 +190,11 @@
if include_dot_files:
for f in os.listdir(directory):
- if not f in ('.svn', '.xvpics', '.thumbnails', '.pics', 'folder.fxd'):
+ if not f in ('.svn', '.xvpics', '.thumbnails', '.pics', 'folder.fxd', 'lost+found'):
files.append(os.path.join(directory, f))
else:
for f in os.listdir(directory):
- if not f.startswith('.') and not f in ('folder.fxd',):
+ if not f.startswith('.') and not f in ('folder.fxd', 'lost+found'):
files.append(os.path.join(directory, f))
if not include_overlay:
@@ -203,8 +203,8 @@
overlay = getoverlay(directory)
if overlay and overlay != directory and os.path.isdir(overlay):
for fname in os.listdir(overlay):
- if fname.endswith('.raw') or fname.startswith('.') or \
- fname == 'folder.fxd' or fname.find('.thumb.') > 0:
+ if fname.endswith('.raw') or fname.startswith('.') or fname in ('folder.fxd', 'lost+found') or \
+ fname.find('.thumb.') > 0:
continue
f = os.path.join(overlay, fname)
if not os.path.isdir(f):
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users