[posixdirectory] added missing code