apache/spark — pull request #3449 by viirya (2014-11-25 08:21:26+00:00)
Title: [SPARK-4597] Use proper exception and reset variable

`File.exists()` and `File.mkdirs()` only throw `SecurityException` instead of `IOException`. Then, when an exception is thrown, `dir` should be reset too.