|
|
|
@ -76,11 +76,14 @@ class view:
|
|
|
|
|
|
|
|
|
|
def listCatalogues():
|
|
|
|
|
path = r"./Catalogues/"
|
|
|
|
|
if not os.path.exists(path):
|
|
|
|
|
print("当前目录[{}]下没有数据!".format(path))
|
|
|
|
|
return False, None, None
|
|
|
|
|
dirList = os.listdir(path)
|
|
|
|
|
fileList = []
|
|
|
|
|
for filename in dirList:
|
|
|
|
|
fileList.append(path + filename)
|
|
|
|
|
return len(fileList), fileList
|
|
|
|
|
return True, len(fileList), fileList
|
|
|
|
|
|
|
|
|
|
def getData(filename, catalogue):
|
|
|
|
|
while True:
|
|
|
|
@ -145,8 +148,8 @@ def getData(filename, catalogue):
|
|
|
|
|
else: print("无效选项!")
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
length, fileList = listCatalogues()
|
|
|
|
|
while True:
|
|
|
|
|
check, length, fileList = listCatalogues()
|
|
|
|
|
while check:
|
|
|
|
|
print("检测到当前缓存中共有{}个目录:".format(length))
|
|
|
|
|
case = {}
|
|
|
|
|
for i in range(length):
|
|
|
|
|