In Python 2.5.0 and earlier, it is not possible to modify
the time stamps of a directory (mtime and atime) on Windows.
The reason is that you cannot "open" (CreateFile) a
directory.

On W9x, it isn't possible, period. On WNT+, it's possible
if you pass FILE_FLAG_BACKUP_SEMANTICS to CreateFile.
I just applied patch #1576166 to the trunk which does that.


Should I backport the patch to 2.5, as it is a bug that
you can modify the time stamps of regular files but not
directories? Or should I not backport as it is a new
feature that you can now adjust the time stamps of a
directory, and couldn't before?

Anthony, can you please pronounce?

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to