[commit: packages/directory] master: doesDirectoryExist also accepts symbolic links (ff6265b)
git at git.haskell.org
git
Wed Oct 2 06:14:35 UTC 2013
Repository : ssh://git at git.haskell.org/directory
On branch : master
Link : http://git.haskell.org/packages/directory.git/commitdiff/ff6265b01640fba7b5e221526a1fbca122e97b24
>---------------------------------------------------------------
commit ff6265b01640fba7b5e221526a1fbca122e97b24
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Fri Sep 20 10:59:43 2013 -0400
doesDirectoryExist also accepts symbolic links
This closes #7971
Signed-off-by: Austin Seipp <austin at well-typed.com>
>---------------------------------------------------------------
ff6265b01640fba7b5e221526a1fbca122e97b24
System/Directory.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/System/Directory.hs b/System/Directory.hs
index 0533563..3aef66f 100644
--- a/System/Directory.hs
+++ b/System/Directory.hs
@@ -924,7 +924,8 @@ setCurrentDirectory path =
#ifdef __GLASGOW_HASKELL__
{- |The operation 'doesDirectoryExist' returns 'True' if the argument file
-exists and is a directory, and 'False' otherwise.
+exists and is either a directory or a symbolic link to a directory,
+and 'False' otherwise.
-}
doesDirectoryExist :: FilePath -> IO Bool
More information about the ghc-commits
mailing list