def GetListFiles(PathForWork):
, ,global list
, ,for file in os.listdir(PathForWork):
, , , ,path = os.path.join(PathForWork, file)
, , , ,ex = path.split('.')
, , , ,if not os.path.isdir(path): #
, , , , , ,if ex[-1].lower() == 'fb2':
, , , , , , , ,fb2zip(path)
, , , , , ,else:
, , , , , , , ,e = ex[-2]+ex[-1]
, , , , , , , ,if e.lower() == 'fb2zip':
, , , , , , , , , ,fb2zip(path)
, , , ,else: #
, , , , , ,GetListFiles(path) #
# -----------------
def CompareList():
, ,OldFile = ''
, ,OldPath = ''
, ,flag = False
, ,for it in Books:
, , , ,if (it[0] == OldFile):
, , , , , ,if not flag :
, , , , , , , ,flag = True
, , , , , , , ,list.append(OldPath)
, , , , , ,list.append(it[1])