check if extension is md
This commit is contained in:
parent
bf0ceb5c1f
commit
a1eaece148
1
main.cpp
1
main.cpp
|
@ -40,6 +40,7 @@ namespace route {
|
||||||
std::filesystem::path postsDir("posts");
|
std::filesystem::path postsDir("posts");
|
||||||
std::vector<std::future<std::string>> futures;
|
std::vector<std::future<std::string>> futures;
|
||||||
for (auto const& entry : std::filesystem::directory_iterator{postsDir}) {
|
for (auto const& entry : std::filesystem::directory_iterator{postsDir}) {
|
||||||
|
if (entry.path().extension() == ".md")
|
||||||
futures.emplace_back(std::async(std::launch::async, process_file, entry.path()));
|
futures.emplace_back(std::async(std::launch::async, process_file, entry.path()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user