5 // Created by Andy Matuschak on 9/12/07.
6 // Copyright 2007 __MyCompanyName__. All rights reserved.
9 #import "SUUtilities.h"
10 #import "BLAuthentication.h"
12 // Make sure it's really /Library/Application Support/Sparkle
13 NSString *SUSupportFolderPath()
18 NSString *result = nil;
20 err = FSFindFolder(kOnSystemDisk, kApplicationSupportFolderType, false, &folder);
22 url = CFURLCreateFromFSRef(kCFAllocatorDefault, &folder);
23 result = [[(NSURL *)url path] stringByAppendingPathComponent:@"Sparkle"];
29 BOOL SUSetupSupportFolder()
31 return [[BLAuthentication sharedInstance] executeCommand:@"/bin/mkdir" withArgs:[NSArray arrayWithObjects:@"-p", SUSupportFolderPath(), nil]];