
public SegmentTarFactory(String directory, boolean mmap) {
</BUG>
this.dir = new File(directory);
<BUG>this.mmap = mmap;
createDirectoryIfMissing(dir);</BUG>
if (!dir.isDirectory()) {
throw new IllegalArgumentException("Not a directory: " + dir.getPath());
}
}

import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
import org.apache.jackrabbit.oak.spi.state.NodeState;
import org.apache.jackrabbit.oak.spi.state.NodeStore;
public class SegmentTarFactory implements NodeStoreFactory {
private final File dir;
private final boolean disableMmap;
public SegmentTarFactory(String directory, boolean disableMmap) {
this.dir = new File(directory);
this.disableMmap = disableMmap;
createDirectoryIfMissing(dir);
if (!dir.isDirectory()) {
throw new IllegalArgumentException("Not a directory: " + dir.getPath());
}
}
