Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file-glob always returns an empty list
#1
Hi, I just set out to write a tinyscheme script that retrieves the list of files from a folder using file-glob and although it looks trivial I can't get it to work. 

the line in question is:

(let* (filepaths (cadr (file-glob (string-append input-path "*.png") 0))))

which always returns empty whether I place it in a script or type a version into the console. Gimp just tells me that parameter 1 to cdr needs to be a pair.
Yes, I have verified that the folder pointed to by input-path exists and that there is at least one png file in it.Permissions are ok (I can load the file explicitly)
I have tried unix style and windows style path separator: nothing works.

I can hardly believe something this fundamental is actually broken - is there something about my setup that is wrong? I have a standard 3.04 installation using the windows installer any insights are appreciated.
Reply


Messages In This Thread
file-glob always returns an empty list - by pyjamaslug - 08-09-2025, 10:31 PM

Forum Jump: