Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:48:36+00:00 2026-05-28T19:48:36+00:00

How do I get a list of files (*.jpg) from all folders, using Script-FU

  • 0

How do I get a list of files (*.jpg) from all folders, using Script-FU in GIMP?

(let* ((filelist (cadr (file-glob pattern 1)))

This only gets files from the current folder.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:48:37+00:00Added an answer on May 28, 2026 at 7:48 pm

    It will be a bit complicated, but it can be done. The list of files which file-glob returns for the current directory includes subdirectories. So you can use that list to recursively build more glob strings, which can be passed to file-glob, and so on.

    (define separator "\\") ; I am using Windows
    (define (all-files dir)
      (let* ((patt  (string-append dir separator "*"))
             (files (cadr (file-glob patt 1))))
        (append files (search-dirs files))))
    (define (search-dirs dirs)
      (if (null? dirs)
          (list)
          (append (all-files (head dirs)) (search-dirs (tail dirs)))))
    

    This works, but it is slow. Perhaps you can find a way to make it faster?

    By the way, this returns all files, not just JPGs. To make it return only JPGs, modify the line which says “(append files (search-dirs files))”. Rather than appending “files”, filter out the JPGs and append those only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get Update queries from a list of files using this
I've trying to get list of updated/added/deleted files from SVN by svnlook using: /usr/bin/svnlook
I want to get the file endings from some files in a list. <a
I am trying to get a list of Files in a Folder from Google
How do I get the list of all the files in a directory? It
I would like to be able to get a list of all possible files
I tried to recursively get all files and folder list.But I can only get
I'm using the script from jquery file upload and modifying the create_scaled_image function to
I want to get a list of files and then read the results into
I am doing a find to get a list of files. How do I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.