开发者

Get list of files in directory on server iPhone

开发者 https://www.devze.com 2023-04-01 09:00 出处:网络
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 do

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

精彩评论

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