This commit is contained in:
thepra 2017-04-02 22:31:53 +02:00
parent f4c8c653a5
commit 68d4127a19
2 changed files with 27 additions and 12 deletions

View File

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

View File

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