lib/net/sftp/protocol/01/attributes.rb
# Returns the group name of the group that owns the file, or +nil+ if that
# information is not available. If the :gid is given, but not the :group,
# the Etc module will be used to lookup the name from the id. This might
# fail on some systems (e.g. Windows).
Returns the group name of the group that owns the file, or +nil+ if that
information is not available. If the :gid is given, but not the :group,
the Etc module will be used to lookup the name from the id. This might
fail on some systems .
Returns the group name of the group that owns the file or + nil + if that information is not available . If the : gid is given but not the : group the Etc module will be used to lookup the name from the id . This might fail on some systems .
def group
      if attributes[:gid] && !attributes[:group]
        require 'etc'
        attributes[:group] = Etc.getgrgid(attributes[:gid].to_i).name
      end
      attributes[:group]
    end
def group if attributes [ :gid ] && ! attributes [ :group ] require 'etc' attributes [ :group ] = Etc . getgrgid ( attributes [ :gid ] . to_i ) . name end attributes [ :group ] end
Returns the group name of the group that owns the file, or +nil+ if that
information is not available.
Returns the group name of the group that owns the file or + nil + if that information is not available .