Changeset 200

Show
Ignore:
Timestamp:
13/10/08 08:50:35 (3 months ago)
Author:
andy
Message:

Don't recurse into excluded directories (Fixes bugs #57 and #70)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r197 r200  
    22New in v0.5.7 () 
    33-------------------------- 
     4+ Don't recurse into excluded directories (bugs #57 and #70) 
    45 
    56New in v0.5.6 (25/09/2008) 
  • trunk/pybackpack/gui.py

    r199 r200  
    531531                                        for f in files: 
    532532                                                fullpath = os.path.join(dirname, f) 
     533                                                if fullpath in set.files_exclude: 
     534                                                        continue 
    533535                                                if fullpath == set.dest: 
    534536                                                        self.statuswin.addmsg(_("NOTE: Destination directory in backup set. Omitting.")) 
     
    542544                                        for d in dirs: 
    543545                                                fullpath = os.path.join(dirname, d) 
     546                                                if fullpath in set.files_exclude: 
     547                                                        dirs.remove(d) 
     548                                                        continue 
    544549                                                if os.access(fullpath, os.R_OK|os.X_OK): 
    545550                                                        filecount += 1