Method: Ftpd::FileInfo#initialize

Defined in:
lib/ftpd/file_info.rb

#initialize(opts) ⇒ FileInfo

Create a new instance. See the various attributes for argument details.

Parameters:

  • opts (Hash)

    The file attributes

Options Hash (opts):

  • :ftype (String)

    The file type

  • :group (String)

    The group name

  • :identifier (String)

    The object’s identifier

  • :mode (Integer)

    The mode bits

  • :mtime (Time)

    The modification time

  • :nlink (Integer)

    The number of hard links

  • :owner (String)

    The owner name

  • :size (Integer)

    The size

  • :path (String)

    The object’s path



89
90
91
92
93
94
95
96
97
98
99
# File 'lib/ftpd/file_info.rb', line 89

def initialize(opts)
  @ftype = opts[:ftype]
  @group = opts[:group]
  @identifier = opts[:identifier]
  @mode = opts[:mode]
  @mtime = opts[:mtime]
  @nlink = opts[:nlink]
  @owner = opts[:owner]
  @path = opts[:path]
  @size = opts[:size]
end