Remove python3 dependency in favour of std::experimental::filesystem
We just have to find a stable way to compile filesystem code on all compilers(vsc++,clang++,g++) on all systems(win,mac,linux)
Test source code
#include <string>
#include <iostream>
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
int main()
{
std::string path = ".";
for (auto & p : fs::directory_iterator(path))
std::cout << p << std::endl;
std::cin.get();
}
Visual Studio C++ on windows 10
.\Debug
.\Project1.vcxproj
.\Project1.vcxproj.filters
.\Project1.vcxproj.user
.\Source.cpp
g++ 7.0 on macOS
$ g++-7 main.cpp -std=c++17 -lstdc++fs && ./a.out
"./a.out"
"./main.cpp"
llvm clang++ 6.0.0 on macOs
jsolsvik in ~/Desktop/cppfilesystem
$ /usr/local/Cellar/llvm/6.0.0/bin/clang++ -o main -std=c++17 \
-L/usr/local/Cellar/llvm/6.0.0/lib main.cpp -lc++experimental && ./main
"./main.dSYM"
"./main"
"./main.cpp"
Edited by Jonas Johan Solsvik