You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Mazer Lao Tzu <ma...@gmail.com> on 2010/01/29 17:31:15 UTC

Re: question with commons-io FileUtils deleteDirectory(File direcotry)

What would you have it do if the directory is null? Currently it will throw
a NullPointerException. Would it be more correct to simply do nothing (as it
does when the directory does not exist)?

On Thu, Jan 28, 2010 at 10:48 PM, shukai yuan <sh...@gmail.com> wrote:

> HI,
>
> Maybe the method FileUtils.deleteDirectory(File directory)  should check
> whether the directory is null?
>
> Shukai
>



-- 
           Mazer