This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Delgan
Recipients Delgan
Date 2022-01-23.18:41:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642963308.84.0.964070745498.issue46490@roundup.psfhosted.org>
In-reply-to
Content
Hi.

Currently, trying to use "os.utime(path, timestamps, follow_symlinks=False)" raises a exception on Windows: "NotImplementedError: utime: follow_symlinks unavailable on this platform".

Looking at the Win32 API it seems possible to open a symbolic link by specifying the "FILE_FLAG_OPEN_REPARSE_POINT" flag: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew#symbolic-link-behavior

Do you think it would be possible to update "os.utime()" implementation and optionally pass the flag here: https://github.com/python/cpython/blob/ca78130d7eb5265759697639e42487ec6d0a4caf/Modules/posixmodule.c#L5516 ?
History
Date User Action Args
2022-01-23 18:41:48Delgansetrecipients: + Delgan
2022-01-23 18:41:48Delgansetmessageid: <1642963308.84.0.964070745498.issue46490@roundup.psfhosted.org>
2022-01-23 18:41:48Delganlinkissue46490 messages
2022-01-23 18:41:48Delgancreate