Download FTP directory contents to ios

前端 未结 1 359
日久生厌
日久生厌 2020-12-18 16:11

I have a website, let\'s say it\'s \"http://www.jwilkthings.com/stuff\"

I have a bunch of .txt files stored on this website, i.e. \"http://www.jwilkthings.com/stuff/

相关标签:
1条回答
  • 2020-12-18 16:24

    The correct way to solve this problem is to not use FTP (riddled with performance and security issues), and to configure your web server to expose a table of contents directory listing that your client can parse.

    But that's not an answer to your question. If you really want your iOS app to speak FTP, take a look at the SimpleFTP sample project from Apple.

    It's old, but I just got it to build on iOS 5. The ListController.m file has the code you're looking for.

    enter image description here

    0 讨论(0)
提交回复
热议问题