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