this.base = new java.io.File(base, nm.substring(p));
AccessController.doPrivileged(new PrivilegedAction<Object>() {
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);
}
});
public static void register() {
Store.register("file", new Factory() {
public Store create(String rootname, Package pkg) {
- java.io.File root = new java.io.File(rootname);
- ThreadContext ctx = ThreadContext.current();
- if(ctx != null) {
- if(ctx.server().name() != null)
- root = new java.io.File(root, ctx.server().name());
- }
- return(new FileStore(pkg, root));
+ return(new FileStore(pkg, new java.io.File(rootname)));
}
});
}