
Hello Ian, Sunday, July 15, 2007, 3:47:15 AM, you wrote:
well, i don't know FilePath library but if it has some sort of canonizeFilename function, this function should make this check yourself and shouldn't strip trailing '\' after ':' for obvious reason - 'c:' and 'c:\' are different directories
The normalise function doesn't affect whether or not there is a trailing separator:
Prelude System.FilePath.Windows> normalise "c:" "C:" Prelude System.FilePath.Windows> normalise "c:\\" "C:\\" Prelude System.FilePath.Windows> normalise "c:\\foo" "C:\\foo" Prelude System.FilePath.Windows> normalise "c:\\foo\\" "C:\\foo\\"
well, i mean that FilePath libarry should contain some sort of normalization function that omits '\' at end of path unless it's a ":\" combination. in other words, function that you now write should be a part of FilePath library because it's a standard functionality although this probably will not solve your problem if you need tro be compatible with existing FilePath version -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com