Skip to content
pubscout

ftpconnect

3.0.0, released 3 months ago by salimdev.ovh

Interact with FTP, FTPS, FTPES, and SFTP servers to upload, download, and manage files.

$ flutter pub add ftpconnect
Source repository

What it does

Provides a Dart client library for connecting to FTP and SFTP servers. It supports uploading and downloading files or entire directories, managing remote directories, and handling in-memory data transfers.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to upload or download files from an FTP or SFTP server in your Flutter application.
  • You want to manage remote directories and files programmatically.

Skip it when

  • You are building a web application and require raw TCP socket connections for SFTP/FTP.
  • You are interacting with a standard REST, GraphQL, or gRPC backend rather than a file server.

Strengths

  • Supports multiple protocols including FTP, FTPS, FTPES, and SFTP.
  • Implements a unified interface for both FTP and SFTP clients.
  • Supports recursive directory uploads and downloads.

Weaknesses

  • Does not support web platforms due to the lack of raw TCP socket support.
  • Imperative API requires manual connection and disconnection handling.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

import 'dart:io';
import 'package:ftpconnect/ftpconnect.dart';

main() async{
    FTPConnect ftpConnect = FTPConnect('example.com',user:'user', pass:'pass');
    File fileToUpload = File('fileToUpload.txt');
    await ftpConnect.connect();
    bool res = await ftpConnect.uploadFile(fileToUpload);
    await ftpConnect.disconnect();
    print(res);
}

Alternatives

Packages that do the same job and could replace ftpconnect.

  • dart_mcp

    A Dart library for building Model Context Protocol (MCP) servers and clients.

  • pub_api_client

    An unofficial API client for Pub.dev to interact with public package information.

  • mqtt5_client

    A server and browser based MQTT Version 5 client for Dart supporting TCP and WebSockets.

  • mqtt_client

    A Dart MQTT client supporting TCP, WebSocket, secure connections and all QoS levels.

Works with

Packages commonly used together with ftpconnect: ones it builds on, ones built on it, and its own family.