Find all folders with .MP3 files while listing folders instead of single mp3 files.

0 votes

I have multiple folder-music albums with songs. I am trying to locate all of these folders and move them to my new external at once. I have not had any luck doing so. File locator finds & list single .mp3's instead of the mp3 directory. Here is a screenshot:

enter image description here

asked May 1, 2015 by LisaLang (30 points)

1 Answer

0 votes

You can't do it in a single step but you can produce a list of the folders by exporting the results using a custom format. Save the following formatting XSLT to a file:


<?xml version="1.0"?>
<!-- List unique folders found in a search
    Copyright (C) Mythicsoft Ltd 2015. All rights reserved.

<xsl:stylesheet xmlns:xsl=""
    xmlns:rslt="" version="1.0">

  <xsl:output method="text" indent="yes"/>
  <xsl:key name="path-match" match="rslt:file" use="rslt:path" />

  <xsl:template match="/">
    <xsl:apply-templates select="//rslt:file"/>

  <xsl:template match="rslt:file">
    <xsl:if test="generate-id() = generate-id(key('path-match', rslt:path))">
        <xsl:value-of select="rslt:path"/>


Then export the results using that format, e.g.

Export with custom format

which should produce something like this:

H:\Britney Spears - Blackout (Bonus Track Version)
H:\Britney Spears - Britney Jean (Album 2013)
answered May 1, 2015 by dave (55,310 points)