[Python-Dev] os.utime on directories: bug fix or new feature?

2006-10-15 Thread Martin v. Löwis
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

Re: [Python-Dev] os.utime on directories: bug fix or new feature?

2006-10-15 Thread Anthony Baxter
On Sunday 15 October 2006 23:35, Aahz wrote: On Sun, Oct 15, 2006, Martin v. L?wis wrote: 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