πŸŽ“ Globbed File List

by Patrick Corgan

Version 1 (October 2, 2023)

Download (178 downloads)

An example of using glob() to obtain a filtered list of file paths. Currently set up to get all files ending in ".mp3" (can be changed in the 'GLOB_PATTERN' variable in block 12) from the directory returned by the 'storage("downloads")' function (can be changed in the 'FILE_PATH' variable in block 9). If you want just the names of the files, you can hook up the unconnected for-each loop.

π—‘π—Όπ˜π—²
As of Automate version 1.23.1, this flow is no longer necessary for filtering files by extension; there is now a 'File extension' option in the "File pick" block. This flow can be used to filter files by other glob patterns, though.

------------------------------
π˜‰π˜Ί π˜—π˜’π˜΅π˜³π˜ͺ𝘀𝘬 𝘊𝘰𝘳𝘨𝘒𝘯
πŸ› οΈπ•”π• π•žπ•žπ•–π•Ÿπ•₯𝕀 π•’π•Ÿπ•• π•”π•£π•šπ•₯π•šπ•”π•šπ•€π•žπ•€ π•¨π•–π•π•”π• π•žπ•–βš’οΈ
------------------------------

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.