In a recent article I showed you how to identify empty folders with PowerShell and delete them. On a related note I saw a post on Twitter with a Reddit question about getting a list of folder names that contain a certain file type. Interesting. Say I have a folder structure and I want to show the folder names if the folder contains say an MP3 file. Let’s do this thing with PowerShell. First, I’ll define a variable for the file type.
↧