Removed warning in case that a partially downloaded file (*.part)

is found in tmp when exiting stk.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9783 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-09-08 00:18:23 +00:00
parent a3eb3e293a
commit b8f84d5d75

View File

@ -222,9 +222,12 @@ FileManager::~FileManager()
i!=allfiles.end(); i++)
{
if((*i)=="." || (*i)=="..") continue;
// For now there should be only zip files in tmp
// For now there should be only zip files or .part files
// (not fully downloaded files) in tmp. Warn about any
// other files.
std::string full_path=tmp+"/"+*i;
if(StringUtils::getExtension(*i)!="zip")
if(StringUtils::getExtension(*i)!="zip" &&
StringUtils::getExtension(*i)!="part" )
{
printf("[addons] Warning: unexpected tmp file '%s' found.\n",
full_path.c_str());