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 jaraco
Recipients giampaolo.rodola, jafo, jaraco, lemburg, loewis, nnorwitz, swarren
Date 2009-05-18.12:50:58
SpamBayes Score 3.2885195e-11
Marked as misclassified No
Message-id <1242651062.23.0.881837774389.issue1578269@psf.upfronthosting.co.za>
In-reply-to
Content
I've improved the symlink support in jaraco.windows (SVN).  It now
implements the symlink check based on the technique suggested by the
MSDN docs.

I've begun to port this functionality to CPython.  I'm attaching a patch
against /branches/py3k that I believe will expose the a symlink function
on Windows systems.  I don't have an environment set up to compile
Python, so the patch hasn't even been checked for valid syntax.

I would appreciate if someone could review the patch and comment on the
technique.  I'm looking for confirmation that this is a reasonable
approach, or suggestions.

Implementing os.link will probably follow the same technique.

The implementation for ntpath.symlink will be incongruent to the posix
implementation, because it can't use lstat (which doesn't appear to
reflect the symlink flag).  Can ntpath call back into the os module
(where a islink could be defined for Windows systems)?
History
Date User Action Args
2009-05-18 12:51:02jaracosetrecipients: + jaraco, lemburg, loewis, nnorwitz, jafo, giampaolo.rodola, swarren
2009-05-18 12:51:02jaracosetmessageid: <1242651062.23.0.881837774389.issue1578269@psf.upfronthosting.co.za>
2009-05-18 12:51:00jaracolinkissue1578269 messages
2009-05-18 12:51:00jaracocreate