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

Add convenience deleteQuietly to FileUtils

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment