#find all directories that have .mp3 files in the top level directory ./hfind /data/media/music --while "\d -> pathlen d <= 4" --when '\d -> isdir d && not(empty(find d (\p -> pathlen p <= (pathlen d + 1)) (\f -> "*.mp3" *= basename f) ))' # find all directories that are more than 1G ./hfind /data/media/music --while '\d -> pathlen d <= 4' --when '\d -> isdir d && sum (map size (find d (const True) isfile)) > 1000000000'