From 174d2e3ae49ed3776449d3dade24cebee304bfb5 Mon Sep 17 00:00:00 2001 From: John Denker Date: Thu, 22 Nov 2012 15:34:11 -0800 Subject: move argParser to utils.h --- tools/libltgrey.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/libltgrey.c') diff --git a/tools/libltgrey.c b/tools/libltgrey.c index 8ae374c..827dcee 100644 --- a/tools/libltgrey.c +++ b/tools/libltgrey.c @@ -368,9 +368,9 @@ int whatsit::set_rep(const string mid, const int shift){ return set_box(box_rep, mid, shift); } -int whatsit::set_box(const boxer box, const string mid, const int shift){ +int whatsit::set_box(const boxer box, const string ID, const int shift){ string fname = parent_dir + "/" + box.dir - + "/mid_" + purify(mid); + + "/" + box.prefix + purify(ID); //xxx cerr << ".... " << fname << endl; int fd = creat(fname.c_str(), 0644); if (fd < 0){ @@ -413,6 +413,9 @@ void whatsit::scan_box(const boxer mybox, const int copies){ using namespace boost::filesystem; string mydir = parent_dir + "/" + mybox.dir; + cerr << "scan_box: scanning " << mydir + << " prefix: " << mybox.prefix + << endl; if (is_directory(mydir)) { for (directory_iterator itr(mydir); itr!=directory_iterator(); ++itr) { -- cgit v1.2.3