up
This commit is contained in:
parent
f4c8c653a5
commit
68d4127a19
@ -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;
|
||||
|
@ -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…
Reference in New Issue
Block a user