首页 > 解决方案 > 如何在 Flutter 中从 FTP 服务器检索文件

问题描述

我试图将文件从 FTP 服务器下载到移动设备,但找不到任何插件。如何将设备连接到 FTP 服务器并使用 Flutter 下载文件?

标签: dartflutter

解决方案


你可以使用SSH

//Connect SFTP: #
  await client.connectSFTP();
//List directory: #
  var array = await client.sftpLs("/home");

推荐阅读