For the time being, I built a bash and cmd script that reads each file named /playlists/*.dirs, each of which is expected to have a directory (/dirA/dir1) on each line. The scripts each build an .m3u file with the same base name as the .dirs file from the mp3, wma, ogg, and spx in each directory.
For anyone that is interested, here are the scripts (to be placed in the device root):
dirs2m3u.sh#/bin/bash
for dirs in playlists/*.dirs ; do
echo Build: ${dirs%.dirs}.m3u
if [ -f ${dirs%.dirs}.m3u ] ; then rm ${dirs%.dirs}.m3u ; fi
cat $dirs | while read d ; do
find "${d#/}" \( -iname '*.mp3' -o -iname '*.ogg' -o -iname '*.wma' \
-o -iname '*.spx' \) -printf '/' -print >>${dirs%.dirs}.m3u
done
done
echo Done.
dirs2m3u.cmd@echo off
for %%a in (playlists\*.dirs) do (
echo Build: %%~pna.m3u
del %%~pna.m3u
for /f "tokens=*" %%d in (%%a) do (
for /f "tokens=2,3,4 delims=\" %%w in ('dir /b /s "%%d\*.mp3" "%%d\*.ogg" "%%d\*.wma" "%%d\*.spx" 2^>nul') do (
echo /%%w/%%x/%%y>>%%~pna.m3u
)
)
)
echo Done.