[New-bugs-announce] [issue40827] os.readlink should support getting the target's printname in Windows

Eryk Sun report at bugs.python.org
Sat May 30 12:31:07 EDT 2020


New submission from Eryk Sun <eryksun at gmail.com>:

As discussed in issue 40654, os.readlink should provide a way to get the print name of a symlink target. This is the target path that was actually passed to WinAPI CreateSymbolicLinkW (except for drive-relative paths) and is what a shell would display as the link target (e.g. CMD's "dir" command). Perhaps a keyword-only parameter could be supported to query the print name, e.g. readlink(path, printname=True). In POSIX, passing printname=True would make no difference, since a POSIX symlink only has a substitute name.

----------
components: Library (Lib), Windows
messages: 370389
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: os.readlink should support getting the target's printname in Windows
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40827>
_______________________________________


More information about the New-bugs-announce mailing list