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; }