# File lib/mpdserver.rb, line 1166 def send_dir( sock, dir, allinfo, path = '' ) sock.puts "directory: #{path}#{dir[:name]}" dir[:songs].each do |song| if allinfo send_song sock, song else sock.puts "file: #{song['file']}" end end dir[:dirs].each do |d| send_dir(sock, d, allinfo, dir[:name] + '/') end end