Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-135

Add convenience deleteQuietly to FileUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4
    • Utilities
    • None

    Description

      It is occasionally useful to delete a file or directory and not care whether that call succeeds or not. I'm not quite sure what others do when deleting a file or directory fails but most often the case is to simply log the event and move on.

      The attached patch includes a new method deleteQuietly() and supporting test cases

      Attachments

        1. io-135.patch
          2 kB
          Kevin Conaway
        2. IO-135-FileUtils_deleteQuietly.patch
          1 kB
          Niall Pemberton

        Activity

          People

            niallp Niall Pemberton
            kevinconaway Kevin Conaway
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: