/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/walker/walker.py

  • Committer: Tim Marston
  • Date: 2016-04-10 20:49:49 UTC
  • Revision ID: tim@ed.am-20160410204949-i4qiz9nin12ymuo5
added -vvv logging of walker execution

Show diffs side-by-side

added added

removed removed

38
38
                walk_list that fall under the directory are skipped.
39
39
                """
40
40
 
 
41
                if the.verbose >= 3: print "walking [%s]" % self.__class__.__name__
 
42
 
41
43
                skip = ''
42
 
 
43
44
                for rel_file in self.walk_list:
44
45
 
45
46
                        # if we're skipping, skip entries in subdirectories, or turn off
61
62
                        # way of knowing what to check.  It could be src_type or dst_type
62
63
                        # (if src_dir or dst_dir was used to generate the walk list) or it
63
64
                        # could be neither (if the walk list came from somewhere else).  But
64
 
                        # it shouldn't matter.  We adding an os.pathset to the end of the
65
 
                        # filename, so it wuill only match files that are descendents of a
66
 
                        # directory with the name of this file.
 
65
                        # it shouldn't matter: we add a path seperateor (os.sep) to the end
 
66
                        # of the filename, so it wuill only match files that are descendents
 
67
                        # of a directory with the name of this file.
67
68
                        if not recurse: skip = rel_file + os.sep
68
69
 
69
70