code: protected static void deleteDir(final File dir) {
      try {
        boolean _exists = dir.exists();
        boolean _not = (!_exists);
        if (_not) {
          return;
        }
        org.eclipse.xtext.util.Files.sweepFolder(dir);
        try {
          dir.delete();
        } finally {
        }
      } catch (Throwable _e) {
        throw Exceptions.sneakyThrow(_e);
      }
    }
docs: little helper for cleaning up the temporary stuff.