Correct the struct in directory.c and trying to find the correct return value for file.c