From 99be33d83b37fb9dd5e93b12a5366ca6e4919dc7 Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 19 Apr 2016 02:31:02 -0400 Subject: [PATCH] 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. --- TestApplication/SUTestApplicationDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestApplication/SUTestApplicationDelegate.m b/TestApplication/SUTestApplicationDelegate.m index d360c607..dbf0f22a 100644 --- a/TestApplication/SUTestApplicationDelegate.m +++ b/TestApplication/SUTestApplicationDelegate.m @@ -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;