mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
src/neutrino.cpp:timeshiftDir : fix autodelete
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