actually, just check if it is a file (including directory or symlink)
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 16 Jun 2014 20:51:40 +0000 (20:51 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 16 Jun 2014 20:51:40 +0000 (20:51 +0000)
llvm-svn: 211053

clang/tools/scan-build/scan-build

index b740cd2..e66b185 100755 (executable)
@@ -208,7 +208,7 @@ sub GetHTMLRunDir {
   }
 
   # Make sure that the directory does not exist in order to avoid hijack.
-  if (-d $NewDir) {
+  if (-e $NewDir) {
       DieDiag("The directory '$NewDir' already exists.\n");
   }