
23 Jan
2005
23 Jan
'05
4:04 p.m.
Isaac Jones
You might be interested in the new FilePath module that's in the works. There's been a lot of work to make these functions portable.
http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/libraries/base/System/File...
splitFileExt "foo" = ("foo", "") splitFileExt "foo." = ("foo", "") I think the second case should be changed to give ("foo.", "") so joinFileExt could undo splitFileExt. On Windows "foo" and "foo." are equivalent, but on Unix they are not. What about splitFileExt "foo.bar."? ("foo", "bar.") or ("foo.bar.", "")? -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/