connection = ftplib.FTP(**ftpCredentials) modifiedTime = connection.sendcmd('MDTM ' + fileName) # successful response: '213 20120222090254'