def specific_perm_for(pathname, perm)
      pathname = pathname.path if pathname.is_a?(ElFinderS3::Pathname)
      matches = @options[:perms].select { |k, v| pathname.to_s.send((k.is_a?(String) ? :== : :match), k) }
      if perm == :hidden
        matches.one? { |e| e.last[perm] }
      else
        matches.none? { |e| e.last[perm] == false }
      end
    end
def specific_perm_for(pathname, perm)
      pathname = pathname.path if pathname.is_a?(ElFinderS3::Pathname)
      matches = @options[:perms].select { |k, v| pathname.to_s.send((k.is_a?(String) ? :== : :match), k) }
      if perm == :hidden
        matches.one? { |e| e.last[perm] }
      else
        matches.none? { |e| e.last[perm] == false }
      end
    end
of perms_for