Fixed directory.c example