#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <iostream>

void ls(const boost::filesystem::path &pfad) {
  if(!boost::filesystem::exists(pfad))
    std::cerr << "Pfad '" << pfad.string() << "' existiert nicht" << std::endl;
  else
    std::cout << pfad.native_file_string() << std::endl;
}

int main(int argc,char **argv) {
  if(argc > 1)
    for(int i=1;i<argc;++i)
      ls(boost::filesystem::path(argv[i],boost::filesystem::native));
  else {
    std::cerr << "usage: " << *argv << " <pfad> ..." << std::endl;
    return 1;
  }
}
