[ftputil] python stat versus FTPHost.stat Difference
Robert Hancock
hancock.robert at gmail.com
Fri Aug 29 06:05:16 CEST 2008
Python 2.5.2 (r252:60911, Aug 28 2008, 23:51:17)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ftputil
>>> host = ftputil.FTPHost('localhost', 'rhancock', 'test')
>>> res = host.stat('/local/data/proftp/proftp.log')
>>> res[8]
1188371100.0
>>> import os
>>> res = os.stat('/local/data/proftp/proftp.log')
>>> res[8]
1219979117
>>>
Issuing a stat on a local file from ftputil and from python produces two
different results. Why?
Given the today's date, the python stat produces the correct result. Is
there something I need to set in ftputil?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/ftputil/attachments/20080829/4e067707/attachment.htm
More information about the ftputil
mailing list