Skip to content
View in the app

A better way to browse. Learn more.

www.Head-Case.org

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Complex Folder Deletion program?

Featured Replies

Friends,

I recently had JRiver reorganize my music folder by ARTST\ALBUM\TRACK.  My old scheme was ARTIST - ALBUM\TRACK.  I like the new one better from an aesthetic point of view, and because I enjoy folders.  The problem is, now I have a shit ton of folders labelled something like "Bjork - Vespertine" that contain nothing except .log and .cue files, and perhaps some .jpg art files or liner notes.  I prefer to embed that stuff in the track, so I don't need the extra files.  

I'd love to have a program that I could tell to delete any folder that did not contain (or whose subfolder did not contain) a music file.  Does something like that exist?

 

I'd probably write a little script either with a regex to search for the "-" if none of the new folders have that, or else to search for folders with only certain types of files. The only real trick to doing it that way is to do test runs that list what will be deleted so you don't lose something important. I don't know of anything that already exists.

  • Author

I'd probably write a little script either with a regex to search for the "-" if none of the new folders have that

That could work.  Time to dust off some expressions.

Edited by Sherwood

"find" with the "-exec" option. Cygwin (maybe powershell) on Windows and native on Mac.

Friends,

I recently had JRiver reorganize my music folder by ARTST\ALBUM\TRACK.  My old scheme was ARTIST - ALBUM\TRACK.  I like the new one better from an aesthetic point of view, and because I enjoy folders.  The problem is, now I have a shit ton of folders labelled something like "Bjork - Vespertine" that contain nothing except .log and .cue files, and perhaps some .jpg art files or liner notes.  I prefer to embed that stuff in the track, so I don't need the extra files.  

I'd love to have a program that I could tell to delete any folder that did not contain (or whose subfolder did not contain) a music file.  Does something like that exist?

 

how about renaming the root of the tree eg. c:\music -> c:\music_old

make a new folder having the original name c:\music

do xcopy /s c:\music_old\*.flac  c:\music\

xcopy /s c:\music_old\*.jp*  c:\music\ etc

rmdir c:\music_old

shouldn't take that long ...

If you want jpg's to be embedded mp3tag.de is a powerful tool that let you embed folder.jpg in each folder into the flac's ...

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.