# File lib/mpdserver.rb, line 1136
        def locate_dir( path )
                dirs = path.split '/'

                the_dir = @filetree
                dirs.each do |d|
                        found = nil
                        the_dir[:dirs].each do |sub|
                                if sub[:name] == d
                                        found = sub
                                        break
                                end
                        end
                        if found.nil?
                                return nil
                        else
                                the_dir = found
                        end
                end

                return the_dir
        end