I have a function that checks the size of several plist files in the /User/Library/Preferences/ directory. For testing purposes, I\'m using iTunes, which on my machine has a preference file of ~500kb.
in my iPhone projects, I am currently copying files using NSFileManager\'s -copyItemAtPath:toPath:error: method. However, the docs so not say anything about atomicity, so I might run into trouble if m
I have an app that allows the user to click a button to save a ringtone to the documents directory. I have the iPad version working appropriately, however, using the same method for the iPhone doesn\'
I need to move system files with NSFil开发者_运维百科eManager in my application and I don\'t seem to have root access. What would be the easiest way to go about gaining this privilege?
Odd behavior with file behavior. Here\'s the thing: I\'m using the phone camera to snap a picture, and internally generating a thumbnail. I\'m saving those as temp files in the Documents directory.
I have a tableView which lists the contents of my document directory. I have some zip files in that. If I touch a file in the tableView, the corresponding zip file is unzipped and extracted in a tempo
I am copying some data using NSFileManager: success = [manager copyItemAtPath:[dirToCopyFrom stringByAppendingPathComponent:file] toPath:[dirToCopyTo stringByAppendingPathComponent:file] error:&c
I am t开发者_StackOverflow社区rying to read a .txt file from my documents directory in the form of NSString. Any idea how to read the file into NSString?
I have a metho开发者_Go百科d that deletes files. Actually I have this NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
I\'m trying to copy a folder that is read-only, but has files inside it, to another location. When I use -copyItemAtPath:toPath:error: it copies the folder, but not the files. Sample code that demonst