Method: Ftpd::DiskFileSystem::Append#append

Defined in:
lib/ftpd/disk_file_system.rb

#append(ftp_path, stream) ⇒ Object

Append to a file. If the file does not exist, create it. Called for:

  • APPE

If missing, then these commands are not supported.

Parameters:

  • ftp_path (String)

    The virtual path

  • stream (Ftpd::Stream)

    Stream that contains the data to write



191
192
193
# File 'lib/ftpd/disk_file_system.rb', line 191

def append(ftp_path, stream)
  write_file ftp_path, stream, 'ab'
end