From 68d4127a19700e4b3f31d5bbcde4606c0292b237 Mon Sep 17 00:00:00 2001 From: thepra Date: Sun, 2 Apr 2017 22:31:53 +0200 Subject: [PATCH] up --- TestWebGen/GeneralBuilder.cpp | 21 +++++++++++++++------ TestWebGen/TestWebGen.cpp | 18 ++++++++++++------ 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/TestWebGen/GeneralBuilder.cpp b/TestWebGen/GeneralBuilder.cpp index c0a5287..0a6a221 100644 --- a/TestWebGen/GeneralBuilder.cpp +++ b/TestWebGen/GeneralBuilder.cpp @@ -163,17 +163,26 @@ void GeneralBuilder::BuildHTMLFiles(Sites site, list rootFiles, list()}; + 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::const_iterator iterator = entries.begin(), end = entries.end(); iterator != end; ++iterator) + { + cout << *iterator; + } /*int i = 0;