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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 7
    • Component/s: 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.

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

              Created:
              Updated:
              Imported:
              Indexed: