28 Jan 00:17
Re: filepath
Neil Mitchell <ndmitchell <at> gmail.com>
2008-01-27 23:17:50 GMT
2008-01-27 23:17:50 GMT
Hi > That seems strange, actually. I would expect, perhaps naively, that > > takeDirectory == fst . splitFileName > dropFileName == takeDirectory > > is there a good reason for these not to be true? The original motivation was that: uncurry (++) . splitFileName === id And hence dropFileName = fst . splitFileName However, in practice I think its more useful to use takeDirectory, since usually the trailing slash gets in the way. Those were the original reasons, but it is possible they were bad reasons from the beginning. Thanks Neil
RSS Feed