Hi all,
i am parsing a ftp f.retrlines('MLSD', ls.append) which creates me a list that contains Fileinfo like the following
#type=file;size=8889;modify=20200719015840; zzapped +2#-lxt.prg
i isolate the info to 3 different lists with the information filesize,modify and filename
that means list a contains "8889" , listb "20200719015840" and listc "zzapped +2#-lxt.prg"
I want the 3 lists to be sorted simultanusly by filedate and create a new list that contains the files sorted by Date.
Or even better, sort the MLSD list by Date while downloading or afterwards .
i am parsing a ftp f.retrlines('MLSD', ls.append) which creates me a list that contains Fileinfo like the following
#type=file;size=8889;modify=20200719015840; zzapped +2#-lxt.prg
i isolate the info to 3 different lists with the information filesize,modify and filename
that means list a contains "8889" , listb "20200719015840" and listc "zzapped +2#-lxt.prg"
I want the 3 lists to be sorted simultanusly by filedate and create a new list that contains the files sorted by Date.
Or even better, sort the MLSD list by Date while downloading or afterwards .
f = ftplib.FTP()
f.port = currentport
f.connect(ftpaddress)
f.login()
f.cwd(remotepath)
f.retrlines('MLSD', ls.append)
f.quit()
