added return statement to parese_directory.c