[Python-ideas] Have os.unlink remove junction points on Windows

Kim Gräsman kim.grasman at gmail.com
Tue Aug 13 13:17:10 CEST 2013


Hi all,

I posted this bug a while back, but haven't had any feedback on it, so
I figured I'd open discussion here:
http://bugs.python.org/issue18314

I want to have os.unlink recognize NTFS junction points (a prequel to
proper symbolic links) and remove them transparently.

Currently, os.unlink on a path to a junction point will fail with a
WindowsError and the error code 5, access denied.

Does this sound controversial, or would anybody be interested in
reviewing a patch to this effect?

Thanks,
- Kim


More information about the Python-ideas mailing list