by Patrick Corgan
𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯
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.
⚡𝘊𝘰𝘯𝘴𝘵𝘳𝘶𝘤𝘵𝘪𝘷𝘦 𝘤𝘰𝘮𝘮𝘦𝘯𝘵𝘴 𝘢𝘯𝘥 𝘤𝘳𝘪𝘵𝘪𝘤𝘪𝘴𝘮𝘴 𝘢𝘳𝘦 𝘢𝘭𝘸𝘢𝘺𝘴 𝘸𝘦𝘭𝘤𝘰𝘮𝘦. 𝘛𝘩𝘢𝘯𝘬 𝘺𝘰𝘶!⚡
Rate and review within the app in the Community section.