summaryrefslogtreecommitdiff
path: root/tools/libltgrey.c
diff options
context:
space:
mode:
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) {