I didn't spot the fact you were using the "dirname" function! Perhaps, to avoid confusion between "dir-name" and "dirname", the argument should be called "rootdir" or "root"?
You have a couple of places where you have something like:
(if (eq? #f <expr>) ...)
This is actually equivalent to:
(if (not <expr>) ...)
and I usually write it as:
(if <expr> ...)
with the branches swapped. This makes it easier to read IMHO.
I'm not sure that I agree with your error message. There seem to be two cases in which an error might get raised:
1) If the root directory passed by the user is not a directory or missing or inaccessible. Surely, in that case, we *want* a message dialog to appear, so that they know there is a problem with their configuration?
2) If there is a problem with one of the files or directories contained by the root directory, then perhaps it would be best to print a warning message but skip the directory without raising an error (and causing a message dialog).
Translatable strings in the Scheme source code is something that I need to make happen before 1.7.3 can be released. I have most of the infrastructure needed already in place; I just need to make sure that everything uses the correct gettext domains etc.
Hi Luigi,
This is a good improvement.
I didn't spot the fact you were using the "dirname" function! Perhaps, to avoid confusion between "dir-name" and "dirname", the argument should be called "rootdir" or "root"?
You have a couple of places where you have something like:
(if (eq? #f <expr>) ...)
This is actually equivalent to:
(if (not <expr>) ...)
and I usually write it as:
(if <expr> ...)
with the branches swapped. This makes it easier to read IMHO.
I'm not sure that I agree with your error message. There seem to be two cases in which an error might get raised:
1) If the root directory passed by the user is not a directory or missing or inaccessible. Surely, in that case, we *want* a message dialog to appear, so that they know there is a problem with their configuration?
2) If there is a problem with one of the files or directories contained by the root directory, then perhaps it would be best to print a warning message but skip the directory without raising an error (and causing a message dialog).
Translatable strings in the Scheme source code is something that I need to make happen before 1.7.3 can be released. I have most of the infrastructure needed already in place; I just need to make sure that everything uses the correct gettext domains etc.