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.
> A part of os.system('ls -l ' + path) and cutting down to the need, I haven't
> got any specialized function.
Both functions mentioned above are documented as part of module os, section
"Files and Directories".
/Jorgen
--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn!
--
http://mail.python.org/mailman/listinfo/python-list