Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

T

Tim Johnson

I have written a class that uses ftplib.FTP as the parent.
I need to reconcile the modified time of a workstation file with
that same filename on a remote server.
Let's say we have a file called '400.shtml'. I get the mtime on
my workstation by1311648420.0
And I use'213 20110726004703'

My question is how to compare the two outputs?
Pointers to documentation and other resources are invited.

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top