Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert ftp timestamp to datetime

ftp = FTP(host="127.0.0.1", user="u",passwd="p")
ftp.cwd("/data")
file_name = sorted(ftp.nlst(), key=lambda x: ftp.voidcmd(f"MDTM {x}"))[-1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #ftp #timestamp #datetime
ADD COMMENT
Topic
Name
1+7 =