31 March 2009

Reasonable file deletion error reporting at last



The stupid File.delete() API returns true or false depending on the result of the operation but if it is false you do not get any feedback.

At last! in Java 7 we now have FileRef.delete() which throws an exception reporting the cause of the problem.

No comments: