[python-uk] File information from Netware share on Windows

David Hughes dfh at forestfield.co.uk
Mon Nov 27 10:02:45 CET 2006


If anyone has access to Python on a Windows system with shared Netware, 
I'd be grateful if you could run a quick test such as the following to 
check if file creation and modification times are returned correctly as 
they would be on a Windows file system:

Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os, stat, time
 >>> fi = r'\\eve\eve_sr\Dp63db-01.sql'      # any file on Netware partition
 >>> os.path.exists(fi)
True
 >>> time.ctime(os.stat(fi).st_ctime)         # is the create time returned?
'Mon Nov 20 14:34:24 2006'
 >>> time.ctime(os.stat(fi).st_mtime)        # is the last modified time 
returned?
'Mon Nov 27 08:46:34 2006'
 >>>

Thanks for any help.

David Hughes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-uk/attachments/20061127/50431a78/attachment.html 


More information about the python-uk mailing list