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

Function readFolder

create_tree.py:71–79  ·  view source on GitHub ↗
(name, count)

Source from the content-addressed store, hash-verified

69
70# 递归 读取文件夹
71def readFolder(name, count):
72 handlerFolder(name,count)
73 for fold in listFiles(name):
74 if fold in ignoreFolder:
75 continue
76 if not os.path.isdir(name+'/'+fold):
77 handlerFile(fold, count, name+'/'+fold)
78 else:
79 readFolder(name+'/'+fold, count+1)
80
81def readAll():
82 Folders = os.listdir('./')

Callers 1

readAllFunction · 0.85

Calls 3

handlerFolderFunction · 0.85
listFilesFunction · 0.85
handlerFileFunction · 0.85

Tested by

no test coverage detected