A helpful method for creating a folder in the "tmp" directory of your iOS device (iPhone, iPad, iPod).
You need:
- http://objective-c-functions.blogspot.com/2013/07/create-directory-in-ios-file-system.html
/** Creates a folder in the /tmp directory.
@param folderNameOrPath String representing the folder name, optionally with its path (full or relative).
@return Returns true if success, false otherwise.
@see createFolderInDocumentDirectoryWithName:
@see createFolderWithName:
@see documentsDirectory
*/
+ (BOOL)createFolderInTempDirectoryWithName:(NSString *)folderNameOrPath {
NSString *path = [NSTemporaryDirectory() stringByAppendingPathComponent:folderNameOrPath];
return [LMFunctions createFolderWithName:path];
}
Download the ready-for-use source file (.m) of Create a folder in App Temp directory
No comments:
Post a Comment