(self, dir)
| 87 | return self |
| 88 | |
| 89 | def walk(self, dir): |
| 90 | names = os.listdir(dir) |
| 91 | for name in names: |
| 92 | path = os.path.join(dir, name) |
| 93 | if os.path.isfile(path): |
| 94 | if self.isValidFile(path): |
| 95 | self.executeFile(path) |
| 96 | elif os.path.isdir(path): |
| 97 | if self.isValidDir(path): |
| 98 | self.executeDir(path) |
| 99 | else: |
| 100 | print "Invalid path", path |
| 101 | |
| 102 | def isValidDir(self, path): |
| 103 | return True |
no test coverage detected