如果不存在,则在ftp上创建文件夹

时间:2022-05-07 09:10:50

Can any one suggest me how do i perform ftp asynscronouly.

任何人都可以建议我如何执行ftp asynscronouly。

I am calling one method from the main view and then the main view navigates to some other view. Now the method that is called should perform the ftp process in the background without any issue.

我从主视图调用一个方法,然后主视图导航到其他视图。现在调用的方法应该在后台执行ftp进程而不会出现任何问题。

I am not able to achieve this. http://www.iphonedevsdk.com/forum/iphone-sdk-development/41143-beginnersquestion-simpleftp-example.html

我无法做到这一点。 http://www.iphonedevsdk.com/forum/iphone-sdk-development/41143-beginnersquestion-simpleftp-example.html

http://developer.apple.com/library/ios/#samplecode/SimpleFTPSample/Listings/URLGetController_h.html#//apple_ref/doc/uid/DTS40009243-URLGetController_h-DontLinkElementID_15 I have referenced this but is there any other way to do the FTP process.

http://developer.apple.com/library/ios/#samplecode/SimpleFTPSample/Listings/URLGetController_h.html#//apple_ref/doc/uid/DTS40009243-URLGetController_h-DontLinkElementID_15我引用了这个,但还有其他办法吗FTP过程。

I have files in a queue which are ftp one after the other in the async method.

在异步方法中,我有一个队列中的文件是一个接一个的ftp。

Thanks.

1 个解决方案

#1


1  

I am sorry i am able to assist with your code but i can help with the ftp command side of things, if would recommend to try and changing into the directory that you are looking for with using CWD <\dirname> and look for the response: 550 <\dirname>: No such file or directory.

我很抱歉我能够帮助你的代码,但我可以帮助ftp命令方面的东西,如果建议尝试使用CWD <\ dirname>更改到您要查找的目录并查找响应:550 <\ dirname>:没有这样的文件或目录。

When you have recieved this response you will then be able to create the directory with using the command of MKD <\dirname> to create a directory.

收到此响应后,您将能够使用MKD <\ dirname>命令创建目录以创建目录。

Hope this helps ..

希望这可以帮助 ..

#1


1  

I am sorry i am able to assist with your code but i can help with the ftp command side of things, if would recommend to try and changing into the directory that you are looking for with using CWD <\dirname> and look for the response: 550 <\dirname>: No such file or directory.

我很抱歉我能够帮助你的代码,但我可以帮助ftp命令方面的东西,如果建议尝试使用CWD <\ dirname>更改到您要查找的目录并查找响应:550 <\ dirname>:没有这样的文件或目录。

When you have recieved this response you will then be able to create the directory with using the command of MKD <\dirname> to create a directory.

收到此响应后,您将能够使用MKD <\ dirname>命令创建目录以创建目录。

Hope this helps ..

希望这可以帮助 ..