System.FilePath.joinDrive problem
Aaron Denney
wnoise at ofb.net
Sat Nov 3 14:56:06 EDT 2007
On 2007-11-03, Twan van Laarhoven <twanvl at gmail.com> wrote:
> Hello all,
>
> The joinDrive function currently produces paths such as "C:File" when
> calling "C:" </> "File". This is apparently handled in a special case:
>
> > | otherwise = case a of
> > [a1,':'] | isLetter a1 -> a ++ b
> > _ -> a ++ [pathSeparator] ++ b
>
> This seems wrong, as far as I know "C:File" is not a valid path. What is
> the reason for this special case?
C:File refers to the file "File" in the current directory on drive c:.
Each drive in windows has its own current directory.
--
Aaron Denney
-><-
More information about the Libraries
mailing list