Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8369594

(fs) Add a recursive directory deletion method to java.nio.file.Files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Currently, the java.nio.file.Files API provides methods like delete and deleteIfExists which can only delete files or empty directories. Deleting non-empty directories requires manual recursion using Files.walkFileTree(), which is cumbersome and error-prone. Introducing a built-in method for recursive directory deletion would enhance developer productivity, provide a consistent and simple API for common use cases, and reduce boilerplate code.


            bpb Brian Burkhalter
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: