v1.5.t5
Fixed a bug that caused the buffDir to get deleted before the app did any work. Apparently the filesystem lib crashes the app if the directory doesn't exists. Might need to add protection against that in the future. Directory pages with now explicitly link to index.html since implicit does not work for apache2.
This commit is contained in:
parent
5ab50433cf
commit
2bd600bd51
|
@ -225,15 +225,15 @@ bool rdConf(shared_t *share)
|
|||
|
||||
share->outDir = cleanDir(share->webRoot) + "/" + share->camName;
|
||||
|
||||
createDirTree(cleanDir(share->buffDir));
|
||||
createDirTree(share->outDir);
|
||||
|
||||
if (share->init)
|
||||
{
|
||||
remove_all(share->buffDir.c_str());
|
||||
|
||||
share->init = false;
|
||||
}
|
||||
|
||||
createDirTree(cleanDir(share->buffDir));
|
||||
createDirTree(share->outDir);
|
||||
}
|
||||
|
||||
varFile.close();
|
||||
|
|
|
@ -35,7 +35,7 @@ using namespace cv;
|
|||
using namespace std;
|
||||
using namespace std::filesystem;
|
||||
|
||||
#define APP_VER "1.5.t4"
|
||||
#define APP_VER "1.5.t5"
|
||||
#define APP_NAME "Motion Watch"
|
||||
|
||||
struct shared_t
|
||||
|
|
|
@ -33,7 +33,7 @@ void genHTMLul(const string &outputDir, const string &title, shared_t *share)
|
|||
|
||||
for (auto &&dirName : dirNames)
|
||||
{
|
||||
htmlText += " <li><a href='" + dirName + "'>" + dirName + "</a></li>\n";
|
||||
htmlText += " <li><a href='" + dirName + "/index.html'>" + dirName + "</a></li>\n";
|
||||
}
|
||||
|
||||
htmlText += "</ul>\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user