public static class FileBased extends MessageStore {
private String path;
private FileBased(String path) throws IOException { new File(this.path = path).mkdirs(); }
- public FileBased slash(String name) throws IOException { return new FileBased(path + "/" + name); }
+ public MessageStore slash(String name) throws IOException { return new FileBased(path + "/" + name); }
public int[] list() {
String[] names = new File(path).list();