Ok. This was a typo. I added a condition in `deleteDir` method