aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2012-07-21 01:36:20 -0400
committerTeddy Wing2012-07-21 01:36:20 -0400
commitf4c76d74ecb66bad371fbf0337c6dbfbe3c8188a (patch)
tree517139071f05e80a75ca92d811594ea8aba7498e
parent02a72745332764ca4e7ed48b0d26fe5e083ecefc (diff)
downloadOn-Task-f4c76d74ecb66bad371fbf0337c6dbfbe3c8188a.tar.bz2
Added descriptive comment to folder creation block
-rw-r--r--Classes/NSFileManager+DirectoryLocations.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Classes/NSFileManager+DirectoryLocations.m b/Classes/NSFileManager+DirectoryLocations.m
index 9d0363a..3a0b017 100644
--- a/Classes/NSFileManager+DirectoryLocations.m
+++ b/Classes/NSFileManager+DirectoryLocations.m
@@ -14,6 +14,7 @@
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex: 0] : NSTemporaryDirectory();
NSString *applicationSupportPath = [basePath stringByAppendingPathComponent:@"On Task"];
+ // If our Application Support directory doesn't exist yet then create it
if (![[NSFileManager defaultManager] fileExistsAtPath:applicationSupportPath]) {
if (![[NSFileManager defaultManager] createDirectoryAtPath:applicationSupportPath attributes:nil]) {
NSLog(@"Error: Could not create folder %@", applicationSupportPath);