thepra 5 years ago
parent
commit
68d4127a19
  1. 21
      TestWebGen/GeneralBuilder.cpp
  2. 18
      TestWebGen/TestWebGen.cpp

21
TestWebGen/GeneralBuilder.cpp

@ -163,17 +163,26 @@ void GeneralBuilder::BuildHTMLFiles(Sites site, list<Document> rootFiles, list<D
}
switch (site)
{
case Utilities::DEV:
case DEV:
{
dir.append("thepradev");
path contentDir{dir.append("content")};
path postsContentDir{dir.append("postsContent")};
path devDir{dir};
devDir.append("thepradev");
path contentDir{devDir.append("content")};
path postsContentDir{devDir.append("postsContent")};
path outputDir{dir}; outputDir.append("output_thepradev");
path posts{outputDir}; posts.append("posts");
}
break;
case Utilities::ART:
case ART:
{
dir.append("thepraart\\");
path artDir{dir};
artDir.append("thepraart");
path contentDir{artDir.append("content")};
path postsContentDir{artDir.append("postsContent")};
path outputDir{dir}; outputDir.append("output_thepraart");
path posts{outputDir}; posts.append("posts");
}
break;

18
TestWebGen/TestWebGen.cpp

@ -23,13 +23,19 @@ int main()
string postcDevOutputPath{cDevOutputPath + "postsContent\\"};
path dir = canonical(".");
cout << dir.append("thepradev").append("a")<<endl;
/*for (auto& p : directory_iterator(dir))
auto entries{list<directory_entry>()};
for (auto& p : directory_iterator(dir))
{
path asd = p.path();
if (!is_directory(p))
cout << asd.append("thepradev") << endl;
}*/
if (is_regular_file(p))
{
entries.push_front(p);
cout << p.path() << endl;
}
}
for (list<directory_entry>::const_iterator iterator = entries.begin(), end = entries.end(); iterator != end; ++iterator)
{
cout << *iterator;
}
/*int i = 0;

Loading…
Cancel
Save