[IronPython] Getting the full path to a file from a file object
dinov at microsoft.com
Wed Sep 24 17:21:47 PDT 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.
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
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
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.
Users mailing list
Users at lists.ironpython.com
More information about the Users