title: GIMP script-fu, can "file-glob" return only files with particular extentions?
body: <p>I'm trying to use python-fu in GIMP. I would like pdb.file_glob to return an array of image files in the format I specify. I tried:</p>
  <pre><code>myGlob = &quot;*.png|*.PNG|*.jpg|*.JPG|*.gif|*.GIF|*.xcf|*.XCF&quot;
  globpath = os.path.join(patternDir, myGlob)
  num_files, files = pdb.file_glob(globpath, 0)
  </code></pre>
  <p>But the files array is always empty, I assume because the glob syntax is invalid.</p>
  <p>Note that if I use <code>myGlob=&quot;*&quot;</code>, I get the graphics files I want, but I also get files such as &quot;fake.txt&quot;, which I want to exclude.</p>