Only try to create the workspace dir if it doesn't exist.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1463 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-10-11 23:04:06 +00:00
parent c42c78dc0a
commit 336a773069

View File

@ -46,7 +46,7 @@ public class FileProjectManager extends ProjectManager {
protected FileProjectManager(File dir) {
super();
_workspaceDir = dir;
if (!_workspaceDir.mkdirs()) {
if (!_workspaceDir.exists() && !_workspaceDir.mkdirs()) {
logger.error("Failed to create directory : " + _workspaceDir);
return;
}