[IronPython] Getting the full path to a file from a file object

Dino Viehland dinov at microsoft.com
Thu Sep 25 02:21:47 CEST 2008


We recently added nt._getfullpathname which could be used as long as the current working directory isn't changing.  But other than that I'm not aware of one.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeff Hardy
Sent: Wednesday, September 24, 2008 5:18 PM
To: Discussion of IronPython
Subject: [IronPython] Getting the full path to a file from a file object

Hi all,
WSGI has an api for sending a file directly. The api requires passing
a file object, but the .NET api for sending files
(HttpResponse.TransmitFile) takes the full path to the file to send.
On *nix the fileno property is passed to sendfile() to get that
effect.

Is there any way to get the full path to the file that a file object
represents? Unfortunately, there's no way to pass any extra
information and still match the APIs.

-Jeff
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list