Hi,
I have couple text files stored on a website and can be accessed via http protocol. Can NSFileManager query and open these files? I tried to construct a URL like this:
But seemed that NSFileManager does not work.
Any hints?
Thanks.
-Ray
I have couple text files stored on a website and can be accessed via http protocol. Can NSFileManager query and open these files? I tried to construct a URL like this:
Code:
NSFileManager *fileManager = [NSFileManager defaultManager];
NSURL *onlineURL = [NSURL URLWithString: @"http://www.myweb.com/temp"];
NSError *error = nil;
NSArray *onlineFiles = [fileManager contentsOfDirectoryAtURL:onlineURL includingPropertiesForKeys:[NSArray array] options:0 error:&error];
But seemed that NSFileManager does not work.
Any hints?
Thanks.
-Ray