Message151115
| 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. |
|