Message88030
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)? |
|
Date |
User |
Action |
Args |
2009-05-18 12:51:02 | jaraco | set | recipients:
+ jaraco, lemburg, loewis, nnorwitz, jafo, giampaolo.rodola, swarren |
2009-05-18 12:51:02 | jaraco | set | messageid: <1242651062.23.0.881837774389.issue1578269@psf.upfronthosting.co.za> |
2009-05-18 12:51:00 | jaraco | link | issue1578269 messages |
2009-05-18 12:51:00 | jaraco | create | |
|