MCPcopy Create free account
hub / github.com/Kuangcp/Note / readAll

Function readAll

create_tree.py:81–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 readFolder(name+'/'+fold, count+1)
80
81def readAll():
82 Folders = os.listdir('./')
83 Folders.sort()
84 # 处理根目录下的md文件
85 for fold in Folders:
86 if fold.endswith('.md') and not fold in ignoreFile:
87 result.append("* [ "+fold[:-3]+" ](./"+fold+")")
88 # 得到根目录下所有文件夹,然后开始递归得到所有文件
89 for fold in Folders:
90 if os.path.isdir(fold) and not fold in ignoreFolder :
91 readFolder(fold, 1)
92
93def main(verb=None):
94 if verb == '-h':

Callers 1

mainFunction · 0.85

Calls 1

readFolderFunction · 0.85

Tested by

no test coverage detected