Move Test App server directory data into subdirectory inside Caches

We want to wipe the caches directory we create for the test app data on launch,
and want to make sure no other data is being inserted into the same directory.
Before, Sparkle was inserting data into the same directory when downloading an update.
This commit is contained in:
Zorg committed 2016-04-19 02:31:02 -04:00
1 parent bdb3dd8c36
commit 99be33d83b
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ static NSString * const UPDATED_VERSION = @"2.0";
assert(bundleIdentifier != nil);
// Create a directory that'll be used for our web server listing
NSURL *serverDirectoryURL = [cacheDirectoryURL URLByAppendingPathComponent:bundleIdentifier];
NSURL *serverDirectoryURL = [[cacheDirectoryURL URLByAppendingPathComponent:bundleIdentifier] URLByAppendingPathComponent:@"ServerData"];
if ([serverDirectoryURL checkResourceIsReachableAndReturnError:nil]) {
NSError *removeServerDirectoryError = nil;