API reference
Preparing search index…

FTP client based on basic-ftp; queued operations run in call order.

Source & inheritance
Member directory21

Constructors

Properties

Methods

Constructors

Properties

DirectoryResponse: typeof FtpDirectoryResponse = FtpDirectoryResponse

Working directory response type.

Source & inheritance
ListingResponse: typeof FtpListingResponse = FtpListingResponse

Directory listing response type.

Source & inheritance
Response: typeof FtpResponse = FtpResponse

Basic FTP response type.

Source & inheritance
TransferMode: typeof TransferMode = TransferMode

File transfer mode enumeration.

Source & inheritance

Methods

  • Abort any outstanding operation and release both connections.

    Returns

    void
    Source & inheritance
  • Download a remote file to local directory localPath, retaining the source filename; use binary transfer by default.

    Parameters

    remoteFile
    string
    localPath
    string
    mode
    TransferMode = TransferMode.Binary

    Returns

    Promise<FtpResponse>
    Source & inheritance
  • Retrieve directory entry names using NLST, defaulting to the current directory; listing data is limited to 8 MiB.

    Parameters

    directory
    string = ''

    Returns

    Source & inheritance
  • Log in asynchronously; omitted arguments use an anonymous account.

    Parameters

    name
    string = 'anonymous'
    password
    string = 'user@sfml-dev.org'

    Returns

    Promise<FtpResponse>
    Source & inheritance
  • Rename a remote file or directory from path to newPath.

    Parameters

    path
    string
    newPath
    string

    Returns

    Promise<FtpResponse>
    Source & inheritance
  • Send raw FTP commands and arguments in queue order; arguments must not contain newlines or null bytes.

    Parameters

    command
    string
    parameter
    string = ''

    Returns

    Promise<FtpResponse>
    Source & inheritance
  • Upload a local file to a remote directory, retaining its filename; append when append is true, otherwise overwrite by default.

    Parameters

    localFile
    string
    remotePath
    string
    mode
    TransferMode = TransferMode.Binary
    append
    boolean = false

    Returns

    Promise<FtpResponse>
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0