Exemple #1
0
 @Override
 public void create(File file, long treeId, long segmentId) throws IOException {
   FileUtil.createFile(file);
   if (!file.createNewFile()) {
     throw new IOException(String.format("Unable to create file %s.", file));
   }
 }
Exemple #2
0
 @Override
 public boolean delete(File file, long treeId, long segmentId) {
   FileUtil.deleteFile(file);
   return true;
 }