From 288110abac5dd1783db79d05be5967d6d3a16393 Mon Sep 17 00:00:00 2001 From: ReDetection Date: Wed, 18 Mar 2015 16:34:11 +0600 Subject: [PATCH] workaround for #18 --- FTPKit/FTPClient.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FTPKit/FTPClient.m b/FTPKit/FTPClient.m index ea0eb21..5e75b31 100644 --- a/FTPKit/FTPClient.m +++ b/FTPKit/FTPClient.m @@ -519,7 +519,8 @@ - (void)failedWithMessage:(NSString *)message - (NSString *)temporaryUrl { // Do not use NSURL. It will not allow you to read the file contents. - NSString *path = [NSTemporaryDirectory() stringByAppendingPathComponent:@"FTPKit.list"]; + NSString *uniqueFilename = [[NSUUID UUID].UUIDString stringByAppendingPathExtension:@"list"]; + NSString *path = [NSTemporaryDirectory() stringByAppendingPathComponent:uniqueFilename]; //FKLogDebug(@"path: %@", path); return path; }