On Tue, 13 Jun 2006 22:06:42 +0800, TheSaint <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> I still learning, but I couldn't find anything which tells me where a
> symlink is pointing to.
os.readlink()
os.lstat()
And they are /not/ Linux-specific; expect them to work on most or all
Unix-like OSes.
os.system('ls -lL ' + path)
should also work. But check, I may be wrong about the L option, and am
not near a Linux system right now.
That's "lL" - a small letter l (ell) followed by a capital letter L in
the ls options above.
This way may be slower than os.path.realpath if that is implemented as
os.path.realpath
TheSaint wrote:
> Hello there,
>
> I still learning, but I couldn't find anything which tells me where a
> symlink is pointing to.
> A part of os.system('ls -l ' + path) and cutting down to the need, I haven't
> got any specialized function.
>
> F
--
http://mail.python.org/mail
Hello there,
I still learning, but I couldn't find anything which tells me where a
symlink is pointing to.
A part of os.system('ls -l ' + path) and cutting down to the need, I haven't
got any specialized function.
F
--
http://mail.python.org/mailman/listinfo/python-list