Ooops, we don't have dropDrive
authorIan Lynagh <igloo@earth.li>
Sun, 1 Jul 2007 22:25:33 +0000 (22:25 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 1 Jul 2007 22:25:33 +0000 (22:25 +0000)
Without it we sometimes do a redundant directory creation attempt, but
no harm should be done.

System/Directory.hs

index fa48bf2..fd6774c 100644 (file)
@@ -275,7 +275,7 @@ createDirectoryIfMissing parents file = do
     (True,  _,  _) -> return ()
     (_,  True,  _) -> mapM_ (createDirectoryIfMissing False) $ mkParents file
     (_, False,  _) -> createDirectory file
- where mkParents = scanl1 (</>) . splitDirectories . dropDrive . normalise
+ where mkParents = scanl1 (</>) . splitDirectories . normalise
 
 #if __GLASGOW_HASKELL__
 {- | @'removeDirectory' dir@ removes an existing directory /dir/.  The