[posixdirectory] added missing code

Thanks @Karlson2k for the heads up.
PR welcome ;) TBH, I don't see a reason to add comments in here now and leave all other places out. Once we're actually replacing something we can touch this code again.