File name from file descriptor?
Chris Gonnerman
chris.gonnerman at newcenturycomputers.net
Fri Jun 22 08:43:56 EDT 2001
What OS? Windows? Linux?
In general, you can't under most OS's. In Linux 2.x you can poke around
in the /proc filesystem and maybe get it.
Why do you need to know?
----- Original Message -----
From: "Carsten Gaebler" <clpy at snakefarm.org>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Friday, June 22, 2001 7:03 AM
Subject: File name from file descriptor?
> Hi there!
>
> How can I determine a file's name if I only have the file descriptor?
> os.fdopen(fd).name just returns '(fdopen)'.
>
> Regards
> Carsten.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
More information about the Python-list
mailing list