2013-01-22 28 views
0

你好,我有这样的代码,不下载任何东西......FTPHelper库不工作的iOS

FTPHelper *ftp; 
    ftp.urlString = @"ftp.marignal.com"; 
    ftp.uname = @"whttpapp.marignal.com"; 
    ftp.pword = @"hidden"; 
    ftp.filePath = @"Barcos/Imagenes"; 
    [ftp download:@"catlanza.bmp"]; 

我使用这个lib目录下:https://github.com/erica/iphone-3.0-cookbook-/tree/master/C13-Networking/15-FTP%20Helper

这种方法下载,它假设安装文件目录中的选定文件...

+0

'ftp.filePath = @ “Barcos/Imagenes”;'这是否目录中? –

+0

是的,我已经检查了它,现在存在。 – rokimoki

回答

0

查看模拟器中的复制路径。

您可能需要处理文档: ftp.filePath = @“Documents/Barcos/Imagenes”;

或以编程方式获取路径: What is the documents directory (NSDocumentDirectory)?

+0

我在文档中没有任何文件夹,只是我的sqliteDB的.db文件夹... – rokimoki

+0

在模拟器文件夹中的“文档”之前查看其他文件夹以查看它实际发生的位置。 /用户/ [您的用户名] /图书馆/应用程序支持/ iPhone模拟器/ .... –