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 pitrou
Recipients amaury.forgeotdarc, brian.curtin, pitrou, santoso.wijaya, tim.golden
Date 2012-01-12.06:42:58
SpamBayes Score 2.3440654e-07
Marked as misclassified No
Message-id <1326350489.3374.20.camel@localhost.localdomain>
In-reply-to <1326332493.3531.29.camel@localhost.localdomain>
Content
> > As such, the documentation for symlink where it states the optional
> > `target_is_directory=False` argument should be automatically detect
> > whether the source is a file or directory does not hold true.
> 
> I don't know if auto-detection is a good idea. Of a course, from a Unix
> user's perspective, Windows' behaviour doesn't make a lot of sense.
> Especially when functions other than listdir() work fine anyway.

Ah, sorry, I had misunderstood your comment. Indeed, os.symlink
*already* tries to autodetect the target's file type, but the detection
is broken with relative symlinks: it doesn't try to join them with the
link's directory and so it thinks the target doesn't exist.
History
Date User Action Args
2012-01-12 06:42:59pitrousetrecipients: + pitrou, amaury.forgeotdarc, tim.golden, brian.curtin, santoso.wijaya
2012-01-12 06:42:58pitroulinkissue13772 messages
2012-01-12 06:42:58pitroucreate