MCPcopy Create free account
hub / github.com/ActiveState/code / walk

Method walk

recipes/Python/574453_Automate_creatinew/recipe-574453.py:89–100  ·  view source on GitHub ↗
(self, dir)

Source from the content-addressed store, hash-verified

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

Callers 15

executeDirMethod · 0.95
rmtreeFunction · 0.45
mainFunction · 0.45
find_replaceFunction · 0.45
recipe-577281.pyFile · 0.45
appendMethod · 0.45
testFunction · 0.45
committed_revFunction · 0.45
create_tree_structureFunction · 0.45
get_directory_structureFunction · 0.45
autoloadMethod · 0.45
mainFunction · 0.45

Calls 8

isValidFileMethod · 0.95
executeFileMethod · 0.95
isValidDirMethod · 0.95
executeDirMethod · 0.95
isfileMethod · 0.80
isdirMethod · 0.80
listdirMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected