Update directory.cpp