ftpclient 0.8.0 ftpclient: ^0.8.0 copied to clipboard
A simple dart FTP Client Library to interact with FTP Servers
A small and simple FTP Client library for Dart Native.
⚠️ This lib is currently under development, the API might change until the first Major release!
Usage #
Add the following dependency to the pubspec.yaml
Stable
dependencies:
ftpclient: ^0.8.0
Development
dependencies:
ftpclient: ^0.9.0
NOTE: This version is not yet available on pub.dev
How to use the FTP Client:
import 'dart:io';
import 'package:ftpclient/ftpclient.dart';
main() {
FTPClient ftpClient = FTPClient('example.com', user: 'myname', pass: 'mypass');
ftpClient.connect();
ftpClient.uploadFile(File('test.zip'));
ftpClient.disconnect();
}
For a complete example, see the examples in the example folder!
Tested FTP Servers #
We have tested the lib with the following FTP Servers:
- ProFTPd