commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Commented: (IO-135) Add convenience deleteQuietly to FileUtils
Date Sun, 06 Jan 2008 01:18:34 GMT


Henri Yandell commented on IO-135:

Looking into how to actually do IO-118; it would also require a boolean return from deleteDirectory.

We could add private _deleteDirectory and _forceDelete methods that return boolean and then
allow this deleteQuietly to return boolean; or we could add the patch as is and change all
in 2.0.

I'm tempted by the latter - let's just apply as is.

> Add convenience deleteQuietly to FileUtils
> ------------------------------------------
>                 Key: IO-135
>                 URL:
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>            Reporter: Kevin Conaway
>            Priority: Minor
>             Fix For: 1.4
>         Attachments: IO-135-FileUtils_deleteQuietly.patch, io-135.patch
> 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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message