public synchronized void deletePendingFiles() throws IOException {
  if (pendingDeletes.isEmpty() == false) {
    for (    String name : new HashSet<>(pendingDeletes)) {
      privateDeleteFile(name,true);
    }
  }
}

public synchronized void deletePendingFiles ( ) throws IOException { if ( pendingDeletes . isEmpty ( ) == false ) { for ( String name : new HashSet < > ( pendingDeletes ) ) { privateDeleteFile ( name , true ) ; } } }
try to delete any pending files that we had previously tried to delete but failed because we are on windows and the files were still held open .
