开发者

Get list of files in directory on server iPhone

I am trying to get a list of the available fil开发者_高级运维es when from a server and be able to look at the names of the files that are available. I was looking at using the NSFileManager, but it does not seem to want to return any results when I enter a URL. I basically want it to return something like when you type "ls" into bash/terminal

Can someone lend an example of how the contentsOfDirectoryAtURL method works and what arguments I should be putting to get the desired result.


NSFileManager only works with local urls with scheme file:

How you talk to a server to access its contents depends on what protocol the server speaks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜