How can I use file-glob to only return files with certain extensions? - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: How can I use file-glob to only return files with certain extensions? (/Thread-How-can-I-use-file-glob-to-only-return-files-with-certain-extensions) |
How can I use file-glob to only return files with certain extensions? - charlweed - 05-10-2021 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: Code: myGlob = "*.png|*.PNG|*.jpg|*.JPG|*.gif|*.GIF|*.xcf|*.XCF" Note that if I use Code: myGlob="*" I would also like the documentation for file-glob, I don't want to clone the repo and try and read the c++ source. Thanks! RE: How can I use file-glob to only return files with certain extensions? - Ofnuts - 05-11-2021 Already answered on StackOverflow: https://stackoverflow.com/a/67478484/6378557 |