Remove Path::getDirectoryContents.