X-Git-Url: http://dolda2000.com/gitweb/?p=jsvc.git;a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Fstore%2FFileStore.java;h=55c15d7a379a530e66ca2725ff5bca5e4c942983;hp=17a8f889cdcf0ed45d77b33ad2e4fabef25994ca;hb=83f55da4bce455a30c7519c9a74cad30fb395e11;hpb=5d99f865555373dbfcf645841bc56a07c728c977 diff --git a/src/dolda/jsvc/store/FileStore.java b/src/dolda/jsvc/store/FileStore.java index 17a8f88..55c15d7 100644 --- a/src/dolda/jsvc/store/FileStore.java +++ b/src/dolda/jsvc/store/FileStore.java @@ -38,8 +38,10 @@ class FileStore extends Store { this.base = new java.io.File(base, nm.substring(p)); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - if(!FileStore.this.base.mkdirs()) - throw(new RuntimeException("Could not create store directory (Java won't tell me why)")); + if(!FileStore.this.base.exists()) { + if(!FileStore.this.base.mkdirs()) + throw(new RuntimeException("Could not create store directory (Java won't tell me why)")); + } return(null); } });