mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
src/neutrino.cpp:timeshiftDir : fix autodelete
Origin commit data
------------------
Commit: 618fa78a5a
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-02 (Fri, 02 Nov 2012)
This commit is contained in:
@@ -547,7 +547,9 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
std::string filename = e->d_name;
|
std::string filename = e->d_name;
|
||||||
if ((filename.find("_temp.ts") == filename.size() - 8) || (filename.find("_temp.xml") == filename.size() - 9))
|
if ((filename.find("_temp.ts") == filename.size() - 8) || (filename.find("_temp.xml") == filename.size() - 9))
|
||||||
{
|
{
|
||||||
remove(filename.c_str());
|
std::string timeshiftDir_filename= timeshiftDir;
|
||||||
|
timeshiftDir_filename+= "/" + filename;
|
||||||
|
remove(timeshiftDir_filename.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir(d);
|
closedir(d);
|
||||||
|
Reference in New Issue
Block a user