Skip to content

Instantly share code, notes, and snippets.

View DaniBarca's full-sized avatar
👻

Dani Barca Casafont DaniBarca

👻
View GitHub Profile
@DaniBarca
DaniBarca / list_directory.cpp
Created January 9, 2018 16:48
List all files in a directory with boost
#include <iostream>
#include "boost/filesystem.hpp"
int main(int argc, char *argv[])
{
std::string path = ".";
for(auto & p : boost::filesystem::directory_iterator( path )){
std::cout << p << std::endl;
}