Exemplo n.º 1
0
  private void applyFileSystemActions(List<FileSystemAction> actions) throws Exception {
    // Sort
    actions = sortFileSystemActions(actions);

    logger.log(Level.FINER, "- Applying file system actions (sorted!) ...");

    // Apply
    for (FileSystemAction action : actions) {
      if (logger.isLoggable(Level.FINER)) {
        logger.log(Level.FINER, "   +  {0}", action);
      }

      try {
        action.execute();
      } catch (InconsistentFileSystemException e) {
        logger.log(
            Level.FINER,
            "     --> Inconsistent file system exception thrown. Ignoring for this file.",
            e);
      }
    }
  }