os.path.islink documentation error?

Diez B. Roggisch deets at nospam.web.de
Tue Nov 27 12:46:24 EST 2007


Giampaolo Rodola' schrieb:
> os.path.islink documentation says:
> 
> "Return True if path refers to a directory entry that is a symbolic
> link. Always False if symbolic links are not supported."
> 
> It's not clear to me why it is mentioned the DIRECTORY term.
> Shouldn't os.path.islink be used to just check if the *path* passed as
> argument is a symlink?
> In such case I would change it in:
> 
> "Return True if path refers to a symbolic link"


But it does say so. It talks about entries in a directory being symbolic 
links. Not the entries being symbolic links to directories.

Diez



More information about the Python-list mailing list