ClientHandler/ClientHandler.cpp
std::string ClientHandler::searchFile(std::string filename) {
	for (auto dir : FileSystem::Directory::getDirectories("../TestFileServer/")) {
		if (dir != "." && dir != "..") {
			std::vector<std::string> files = FileSystem::Directory::getFiles("../TestFileServer/" + dir, filename);
			if (files.size() == 0) continue;
			else return "../TestFileServer/" + dir + "/" + filename;
		}
	}
	return "";
}
// ----------------< look for file on the server to be sent >----------------
< look for file on the server to be sent >
< look for file on the server to be sent >
std::string ClientHandler::searchFile(std::string filename) {
	for (auto dir : FileSystem::Directory::getDirectories("../TestFileServer/")) {
		if (dir != "." && dir != "..") {
			std::vector<std::string> files = FileSystem::Directory::getFiles("../TestFileServer/" + dir, filename);
			if (files.size() == 0) continue;
			else return "../TestFileServer/" + dir + "/" + filename;
		}
	}
	return "";
}
std :: string ClientHandler :: searchFile ( std :: string filename ) { for ( auto dir : FileSystem :: Directory :: getDirectories ( " " ) ) { if ( dir != " " && dir != " " ) { std :: vector < std :: string > files = FileSystem :: Directory :: getFiles ( " " + dir , filename ) ; if ( files . size ( ) == 0 ) continue ; else return " " + dir + " " + filename ; } } return " " ; }
< look for file on the server to be sent >
< look for file on the server to be sent >