System.FilePath propsal (Was: Cabal feedback notes)
simonmar at microsoft.com
Wed Oct 27 15:55:59 EDT 2004
On 27 October 2004 17:47, Philippa Cowderoy wrote:
> On Tue, 26 Oct 2004, Krasimir Angelov wrote:
>> It is not hard to split System.FilePath to
>> System.FilePath.Posix and System.FilePath.Windows. I
>> will do that if other people also agree on that.
> That makes life... irritating for those of us trying to write
> genuinely portable code, insofar as there's no
> System.FilePath.DoTheNativeThing. It'd be nice to be able to do
> things like get a list of the files, just the files, in a given
> directory without having to use a preprocessor or similar for
>  As opposed to directory entries like ".."
I don't think Krasimir meant that System.FilePath would be *replaced* by
the platform-specific versions, just that the platform-specific versions
would be provided for those wishing to manipulate non-native paths.
You'd still get System.FilePath.
More information about the Libraries