Example #1
0
 @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()]);
 }
Example #2
0
 @Override
 public long fileModified(String name) throws IOException {
   final File file = openExistingFile(name, false);
   return file == null ? 0 : file.getLastModified();
 }