Skip to content

Options object

SaltwaterC edited this page Feb 3, 2013 · 1 revision

Accepts a String or Object. Passing a String is handled internally as:

options = {url: options};

The following options are supported:

  • url - mandatory - the FTP url
  • bufferType - for the ftp.get method buffering type. Accepts only 'string' or 'buffer' as values. The 'string' buffers are deprecated
  • timeout - command socker and data socket idle timeout, in seconds. The command socket timeout is disabled once the data socket information is available
Clone this wiki locally