Linux info
Jorgen Grahn
grahn+nntp at snipabacken.dyndns.org
Thu Jun 29 03:27:00 EDT 2006
On Tue, 13 Jun 2006 22:06:42 +0800, TheSaint <fc14301589 at icqmail.com> 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!
More information about the Python-list
mailing list