Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv26574

Modified Files:
        vfs.py 
Log Message:
make it possible to exclude dot files and overlay dir

Index: vfs.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/vfs.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** vfs.py      6 Jan 2004 19:25:46 -0000       1.10
--- vfs.py      9 Jan 2004 19:03:39 -0000       1.11
***************
*** 17,20 ****
--- 17,23 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.11  2004/01/09 19:03:39  dischi
+ # make it possible to exclude dot files and overlay dir
+ #
  # Revision 1.10  2004/01/06 19:25:46  dischi
  # added mtime function using stat
***************
*** 189,193 ****
      
  
! def listdir(directory, handle_exception=True):
      """
      get a directory listing (including OVERLAY_DIR)
--- 192,197 ----
      
  
! def listdir(directory, handle_exception=True, include_dot_files=False,
!             include_overlay=False):
      """
      get a directory listing (including OVERLAY_DIR)
***************
*** 198,204 ****
              
          files = []
!         for f in os.listdir(directory):
!             if not f in ('CVS', '.xvpics', '.thumbnails', '.pics', '.', '..'):
!                 files.append(directory + f)
          overlay = getoverlay(directory)
          if overlay and os.path.isdir(overlay):
--- 202,217 ----
              
          files = []
!         if include_dot_files:
!             for f in os.listdir(directory):
!                 if not f in ('CVS', '.xvpics', '.thumbnails', '.pics', '.', '..'):
!                     files.append(directory + f)
!         else:
!             for f in os.listdir(directory):
!                 if not f.startswith('.') and f != 'CVS':
!                     files.append(directory + f)
! 
!         if not include_overlay:
!             return files
! 
          overlay = getoverlay(directory)
          if overlay and os.path.isdir(overlay):




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to