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)
{
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;

View File

@ -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;