- logf (LOG_DEBUG, "dir_open %s", rep);
- if (!(dir = opendir(rep)))
+ if (base && !yaz_is_abspath(rep))
+ {
+ strcpy (full_rep, base);
+ strcat (full_rep, "/");
+ }
+ else
+ *full_rep = '\0';
+ strcat (full_rep, rep);
+
+ logf (LOG_LOG, "dir_open %s", full_rep);
+ if (!(dir = opendir(full_rep)))