File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,13 @@ - (NSUInteger)fileSizeOfDownload
137
137
{
138
138
NSFileManager *fileManager = [NSFileManager defaultManager ];
139
139
140
- if (![fileManager fileExistsAtPath: _localURL.path ])
140
+ if (![fileManager fileExistsAtPath: _tempPath ])
141
141
{
142
142
return 0 ;
143
143
}
144
144
145
145
NSError *error;
146
- NSDictionary *attributes = [fileManager attributesOfItemAtPath: _localURL.path error: &error];
146
+ NSDictionary *attributes = [fileManager attributesOfItemAtPath: _tempPath error: &error];
147
147
148
148
if (error)
149
149
{
@@ -424,7 +424,6 @@ - (NSUInteger)extractTotalBytesFromResponse:(NSHTTPURLResponse *)response
424
424
NSString *byteStr = [rangeValue substringWithRange: [match rangeAtIndex: 1 ]];
425
425
return (NSUInteger ) [byteStr integerValue ];
426
426
}
427
-
428
427
}
429
428
430
429
return (NSUInteger ) [response expectedContentLength ];
You can’t perform that action at this time.
0 commit comments