def file?(filename)
      return unless filename
      File.exist? File.join(@library.source_path, filename.split('/'))
    end
def file?(filename)
      return unless filename
      File.exist? File.join(@library.source_path, filename.split('/'))
    end
Detection