def perms_for(pathname, options = {})
      # skip = [options[:skip]].flatten
      response = {}

      response[:read] = pathname.readable?
      response[:read] &&= specific_perm_for(pathname, :read)
      response[:read] &&= @options[:default_perms][:read]

      response[:write] = pathname.writable?
      response[:write] &&= specific_perm_for(pathname, :write)
      response[:write] &&= @options[:default_perms][:write]

      response[:locked] = pathname.is_root?
      response[:locked] &&= specific_perm_for(pathname, :locked)
      response[:locked] &&= @options[:default_perms][:locked]

      response[:hidden] = false
      response[:hidden] ||= specific_perm_for(pathname, :hidden)
      response[:hidden] ||= @options[:default_perms][:hidden]

      response
    end
def perms_for(pathname, options = {})
      # skip = [options[:skip]].flatten
      response = {}

      response[:read] = pathname.readable?
      response[:read] &&= specific_perm_for(pathname, :read)
      response[:read] &&= @options[:default_perms][:read]

      response[:write] = pathname.writable?
      response[:write] &&= specific_perm_for(pathname, :write)
      response[:write] &&= @options[:default_perms][:write]

      response[:locked] = pathname.is_root?
      response[:locked] &&= specific_perm_for(pathname, :locked)
      response[:locked] &&= @options[:default_perms][:locked]

      response[:hidden] = false
      response[:hidden] ||= specific_perm_for(pathname, :hidden)
      response[:hidden] ||= @options[:default_perms][:hidden]

      response
    end
of tree_for