@Override public String[] listAll() throws IOException { final Transaction txn = env.getAndCheckCurrentTransaction(); final ArrayList<String> allFiles = new ArrayList<>((int) vfs.getNumberOfFiles(txn)); for (final File file : vfs.getFiles(txn)) { allFiles.add(file.getPath()); } return allFiles.toArray(new String[allFiles.size()]); }
@Override public long fileModified(String name) throws IOException { final File file = openExistingFile(name, false); return file == null ? 0 : file.getLastModified(); }