File: pathname_opendir_recursive_util.cpp

package info (click to toggle)
pingus 0.7.6-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,672 kB
  • sloc: cpp: 42,080; xml: 2,319; lisp: 521; ruby: 455; ansic: 365; objc: 248; sh: 247; makefile: 140; python: 15
file content (23 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>

#include "pingus/path_manager.hpp"
#include "util/pathname.hpp"

int main(int argc, char** argv)
{
  g_path_manager.set_path("data");
  for(int i = 1; i < argc; ++i)
  {
    g_path_manager.add_overlay_path(argv[i]);
  }

  Pathname path("images", Pathname::DATA_PATH);
  auto lst = path.opendir_recursive();
  for(auto it = lst.begin(); it != lst.end(); ++it)
  {
    std::cout << *it << std::endl;
  }
  return 0;
}

/* EOF */