dart - 如何在 Flutter 中从 FTP 服务器检索文件
问题描述
我试图将文件从 FTP 服务器下载到移动设备,但找不到任何插件。如何将设备连接到 FTP 服务器并使用 Flutter 下载文件?
解决方案
你可以使用SSH库
//Connect SFTP: #
await client.connectSFTP();
//List directory: #
var array = await client.sftpLs("/home");
推荐阅读
- python - 在从 WIkipedia 检索股票代码时遇到 BRK.B 后无法继续进行 quandl
- php - 403:在google drive api php中创建文件夹时权限不足
- python - 将一系列值编码为 n 个离散级别的 numpy 方法
- python - 如何在 Zeppelin 中的 %pyspark 解释器和 %python 解释器之间传递数据集?
- java - Intellij IDEA 构建工件没有复制 js 和 css 文件
- visual-studio-code - 我的 vs-code 错误 - 无法加载 jshint 库。安装库不生效
- python - Pip 无法安装包
- python-3.x - SyntaxError:解析 ast.literal_eval() 时出现意外 EOF
- spring - 如何使用 http url 从远程位置加载 i18 文件?
- cocoapods - Cocoapods - 我无法在我的 Mac 上安装 cocoapods。我正在按照 cocoapods.org 的步骤安装 cocoapods