Updated File::deleteDirectory function

I don't know why File::deleteDirectory function doesn't return true on success. In my opinion It should.