New submission from Eryk Sun <eryk...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40827>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to