#!/bin/bash
#
#origem=/home/Temp/OrangePi_Arquivos/mp3_
origem=/var/www/html
#
for file in $(find $origem -type d -exec ls -d {} \;);
   do
    aa=$(echo "$file")
    if [ ${aa} = "$origem" ]; then
        echo -e "aqui 1 $file"
    else
        bb=${aa//"$origem"/}
        echo -e $bb
        cd $aa/
        tree -H .$bb -o index.html
    fi
done
#tree -H '.' -L 1 --noreport --dirsfirst -T 'Arquivos' -s -D --charset utf-8 -I index.html -o index.html
