Stop dirEntry deprecated warning

It's nice to not have any warnings :)