Top "Nsfilemanager" questions

The NSFileManager class enables you to perform various generic file-system operations and insulates an application from the underlying file system.

How to rename a file using NSFileManager

I have a single file named a.caf in the documents directory. I would like to rename it when user …

nsfilemanager
Get resource URL from project specific path

I need to retrieve the URL of a resource contained in my Xcode project through a path that begins in …

swift nsurl nsfilemanager nsbundle
NSFileManager creating folder (Cocoa error 513.)

I'm trying to create a folder inside the /sounds folder of my app. -(void)productPurchased:(UAProduct*) product { NSLog(@"[StoreFrontDelegate] …

iphone nsfilemanager
NSFileManager delete contents of directory

How do you delete all the contents of a directory without deleting the directory itself? I want to basically empty …

cocoa directory osx-snow-leopard nsfilemanager
Check if file exists at URL instead of path

How can I check if a file exists at a URL (instead of a path), in order to set a …

objective-c nsfilemanager
How to read/write file with iOS, in simulator as well as on device?

As I need to read a file when my app is launched and write it sometimes while using it, I …

objective-c ios nsfilemanager read-write
How to save file in the documents folder?

I am trying to save data in the documents folder on iPhone 5.1 simulator. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *…

iphone nsfilemanager nsdocumentdirectory
Delete file obj c

I am creating files with the following code NSString *docPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]; NSString *filename = @"xyz123.data"; docPath = [NSString stringWithFormat:@"%@/%@", …

objective-c nsfilemanager
iPhone - How to create a custom album and give custom names to photos in camera roll programmatically?

I am developing an iPhone photo application, so i need to create a separate album with a name "My Album" …

iphone ios camera nsfilemanager
iPhone: NSFilemanager fileExistsAtPath:isDirectory: not working properly?

I'm working on an app for jailbroken iPhones. I'm trying to get only the directories of an folder. so I'm …

iphone objective-c nsfilemanager