If you are running this on Linux you might get rid of the big script and use a simple call to find:
find . -iname \*xcf -exec ls -l {} \;
Replace ls -l with your call to GIMP, the {} gets replaced with the filename.
If you are running this on Linux you might get rid of the big script and use a simple call to find:
find . -iname \*xcf -exec ls -l {} \;
Replace ls -l with your call to GIMP, the {} gets replaced with the filename.