src/do-refresh-auth
changeset 42 0e77495e91e2
parent 39 f5055ce263c7
child 50 77d97aa18f29
equal deleted inserted replaced
41:de0c61b778fa 42:0e77495e91e2
    34     #print "Processing keyroot", keyroot
    34     #print "Processing keyroot", keyroot
    35     for root, dirs, files in os.walk(keyroot):
    35     for root, dirs, files in os.walk(keyroot):
    36         for fn in files:
    36         for fn in files:
    37             ffn = os.path.join(root, fn)
    37             ffn = os.path.join(root, fn)
    38             if not ffn.startswith(kr):
    38             if not ffn.startswith(kr):
    39                 print "Weird, walk returned unexpected result"
    39                 raise Exception("Inconsistent behaviour in os.walk, bailing")
    40                 continue
       
    41             #print "Processing file", ffn
    40             #print "Processing file", ffn
    42             keyname = ffn[len(kr):]
    41             keyname = ffn[len(kr):]
    43             if not ruleset.goodpath(keyname):
    42             if not ruleset.goodpath(keyname):
    44                 # ignore any path that contains dodgy characters
    43                 # ignore any path that contains dodgy characters
    45                 #print "Ignoring file", ffn
    44                 #print "Ignoring file", ffn