, , , , , , countFiles += 1
, , , , , , my_rename(adr,ph,'.fb2.zip')
, ,elif (m[-1] == "fb2"):
, , , ,if flag and parse_fb2(adr):
, , , , , , countFiles += 1
, , , , , , my_rename(adr,ph,'.fb2') , , , , , ,
, , , ,
def parse_dir(ph):
, ,dirlist = os.listdir(ph)
, ,dirlist.sort()
, ,for i in dirlist:
, , , ,adr = os.path.join(ph, i)
, , , ,if os.path.isdir(adr):
, , , , , ,parse_dir(adr)
, , , ,else:
#? , , , , , ,if os.path.getsize(i) > 0:
, , , , , , , ,parse_file(adr, ph)
#? , , , ,else:
#? , , , , , ,print("bad zip "+ i)
#----------------------------------------
path = os.getcwd()
, ,
#----------------------------------------
if os.path.isfile('NeBaza.txt'):
, ,f = open('NeBaza.txt','r')
, ,for i in f:
, , , , , ,Books.append(i)
, ,f.close()