Added stat function in GetFile function of Server.cpp