File file = new File(path);
if (!file.delete())
{
throw new IOException(
"Failed to delete the file because: " +
getReasonForFileDeletionFailureInPlainEnglish(file));
}
Is there a good implementation of getReasonForFileDeletionFailureInPlainEnglish(file)
already out there? Or else I ll just have to write it myself.