提交 6abab875 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 c37ffc65
......@@ -863,10 +863,10 @@ public class DiskFile implements CacheWriter {
void addRecord(Session session, Record record) throws SQLException {
synchronized (database) {
cache.put(record);
if (logChanges) {
log.add(session, this, record);
}
cache.put(record);
}
}
......
......@@ -415,8 +415,15 @@ public class BuildBase {
}
protected void mkdir(String dir) {
if (!new File(dir).mkdirs()) {
throw new Error("Can not create directory " + dir);
File f = new File(dir);
if (f.exists()) {
if (f.isFile()) {
throw new Error("Can not create directory " + dir + " because a file with this name exists");
}
} else {
if (!f.mkdirs()) {
throw new Error("Can not create directory " + dir);
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论