Top "Nsfilemanager" questions

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

iPhone (iOS): copying files from main bundle to documents folder error

I am trying to copy some files across from my app bundle to the documents directory on first launch. I …

iphone nsfilemanager
How to get All paths for files in Documents directory?

I usually get paths by using NSBundle. But, NSBundle does not contain Documents folder. How to get All paths(or …

ios iphone xcode nsfilemanager nsbundle
Copy Folder (w/contents) from bundle to Documents directory - iOS

EDIT: SOLVED Thanks Brooks. Your question led me to keep digging into if the file even existed in my bundle …

iphone ios copy bundle nsfilemanager
Find parent directory of a path

Is there any way to find the parent directory of a path using NSFileManager or something? e.g. Take this: /…

objective-c cocoa path nsfilemanager
copyItemAtPath always fails with File exists error

I'm trying to copy directories with copyItemAtPath, yet every time it fails with a "The operation couldn’t be completed. …

objective-c cocoa nsfilemanager
Why use an NSFileManager rather than just using NSData's writeToFile:atomically: method when creating a new file?

Consider the following two code samples: NSData *imgData = UIImagePNGRepresentation(imgFull); NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString *fullPath = [documentsDirectory …

iphone objective-c ios cocoa-touch nsfilemanager
Checking if Image Exists in Bundle - iPhone

I have an app with a number of images. I want to check if an image exists in the bundle. …

iphone objective-c xcode sdk nsfilemanager
Strange error when moving a folder to temp with moveItemAtPath. Cocoa error 516

I try to move a folder with a file to a temp folder, but I always receive the same error: …

objective-c ios nsfilemanager temporary-directory
Load text file from specific location objective c

I was wondering how to read a file from a specific location on ios. For example I'd quite like to …

objective-c ios load nsfilemanager
NSSearchPathForDirectoriesInDomains NSUserDomainMask

Using URLConnection I am downloading a file from a url and storing that data to file in documents directory. When …

ios xcode4.2 nsfilemanager nsfilehandle