Description
Ravi commented about this on HADOOP-6536. Paraphrasing...
Currently FileUtil.fullyDelete(myDir) comes out stopping deletion of other files/directories if it is unable to delete a file/dir(say because of not having permissions to delete that file/dir) anywhere under myDir. This is because we return from method if the recursive call "if(!fullyDelete())
{return false;}" fails at any level of recursion.
Shouldn't it continue with deletion of other files/dirs continuing in the for loop instead of returning false here ?
I guess fullyDelete() should delete as many files as possible(similar to 'rm -rf').
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-6688 FileSystem.delete(...) implementations should not throw FileNotFoundException
- Resolved