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

(fs) Add Files.deleteFileTree to delete a file tree

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 7
    • core-libs
    • x86
    • linux_ubuntu

      A DESCRIPTION OF THE REQUEST :
      According to http://code.google.com/p/guava-libraries/issues/detail?id=365 it is impossible to safely delete a path recursively using Java due to race conditions.

      As such, I am proposing the following API be added:

      Files.delete(Path, DeleteOption...) where StandardDeleteOption.RECURSIVELY specifies that children paths should be deleted as well.

      JUSTIFICATION :
      This is a commonly-requested feature that is difficult to implement in a cross-platform and secure manner. As such, it should be provided by the core API.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: