Filter (list only) folders that contain a specific file type?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Megalith
Posts: 78
Joined: 24 Jan 2015 16:53

Filter (list only) folders that contain a specific file type?

Post by Megalith »

Can the visual filter be configured to list only folders that contain a specific file type, like PDFs?

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Filter (list only) folders that contain a specific file type?

Post by highend »

Afaik no,
but you could use a script that shows these (subfolders of the current path!) folders
in a paperfolder...

Code: Select all

    $matches = quicksearch("*.pdf /f /maxdepth=1 /limitperdir=1");
    paperfolder("PDF", regexreplace($matches, "\\[^\\]+(\r?\n|$)", <crlf>));
One of my scripts helped you out? Please donate via Paypal

Megalith
Posts: 78
Joined: 24 Jan 2015 16:53

Re: Filter (list only) folders that contain a specific file type?

Post by Megalith »

Thanks, but your script doesn't seem to do anything other than bring up a popup menu with those two lines of code. Maybe I'm doing it wrong...

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Filter (list only) folders that contain a specific file type?

Post by highend »

Indent both lines by at least one space (they were posted with 4)
One of my scripts helped you out? Please donate via Paypal

Megalith
Posts: 78
Joined: 24 Jan 2015 16:53

Re: Filter (list only) folders that contain a specific file type?

Post by Megalith »

Awesome, thank you.

Post Reply