Skip to content

FTPClient » Disconnect

Disconnects the FTPClient.

js
client.Disconnect();
client.Disconnect();

Example

js
let client = ftp.Connect(
    "sftp", 
    "example.domain.com", 
    22,
    "brad",
    "password"
);
let success = client.IsConnected(); 
if (success) {
    // Do some ftp work...
    client.Disconnect();
}
let client = ftp.Connect(
    "sftp", 
    "example.domain.com", 
    22,
    "brad",
    "password"
);
let success = client.IsConnected(); 
if (success) {
    // Do some ftp work...
    client.Disconnect();
}