onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
242 stars 28 forks source link

ftp support for fetch #132

Open ram535 opened 3 years ago

ram535 commented 3 years ago

Is there a reason that ftp protocol is not support with fetch method.

Currently this does not work.

  fetch(
      url: 'ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2',
      saveToPath: 'isl-0.18.tar.bz2');

Thanks.

bsutton commented 3 years ago

No reason. Just not something I've needed to date.

If you are interested in raising a pr I would be happy to add them feature.

On Thu, 22 Apr 2021, 7:55 am Ramses, @.***> wrote:

Is there a reason that ftp protocol is not support with fetch method.

Currently this does not work.

fetch( url: 'ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2', saveToPath: 'isl-0.18.tar.bz2');

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bsutton/dcli/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OFBAUSVPTDNAAQAKZDTJ5CUZANCNFSM43LGNUQA .

bsutton commented 3 years ago

May look at this once https://pub.dev/packages/ftpclient has stabilised. We don't have the resources to implement an ftp client from scratch.