summaryrefslogtreecommitdiff
path: root/tools/libltgrey.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-11-22 15:34:11 -0800
committerJohn Denker <jsd@av8n.com>2012-11-22 15:34:11 -0800
commit174d2e3ae49ed3776449d3dade24cebee304bfb5 (patch)
tree3102d8246737df2e3cd36e423b4ee424fe419a36 /tools/libltgrey.c
parente1d2c30b9d7c08b658464e3db4bf48d5fe52cf5e (diff)
move argParser to utils.h
Diffstat (limited to 'tools/libltgrey.c')
-rw-r--r--tools/libltgrey.c7
1 files changed, 5 insertions, 2 deletions
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) {