ftpclient 0.6.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 85

A small and simple FTP Client library for Dart Native.

Pub Version GitHub license Build Status GitHub issues

Usage #

Add the following dependency to the pubspec.yaml

Stable

dependencies:
  ftpclient: ^0.6.0

Development

dependencies:
  ftpclient: ^0.7.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

0.6.0 #

  • Updated examples
  • #6 Fail faster on uploading a non-existing file
  • #8 Made directory listing more compatible (new uid, gid and unknown properties in FTPEntry)

0.5.0 #

  • List files and directories in current directory

0.4.0 #

  • Fixed Issue #1 (FTP Servers not sending a space after the status code)

0.3.0 #

  • Rename files and folders
  • Delete files
  • Error correction for file download & upload
  • Timeout for response from server

0.2.0 #

  • Change Transfer mode (default is binary)
  • Set Remote file name
  • Small performance optimization
  • Download Files

0.1.0 #

  • Initial version
  • Connect to an FTP Server with Authorization
  • Get current directory
  • Change directory
  • Make directory
  • Delete directory
  • Upload file (in binary mode)

example/README.md

Examples #

You find some useful examples in here:

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ftpclient: ^0.6.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ftpclient/ftpclient.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
71
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
85
Learn more about scoring.

We analyzed this package on Mar 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
path ^1.6.4 1.6.4
Dev dependencies
test ^1.6.0