@@ -40,11 +40,11 @@ #import "OFInvalidFormatException.h" #import "OFInvalidServerReplyException.h" #import "OFOpenItemFailedException.h" #import "OFOutOfRangeException.h" #import "OFReadFailedException.h" -#import "OFStatItemFailedException.h" +#import "OFRetrieveItemAttributesFailedException.h" #import "OFUnsupportedProtocolException.h" #import "OFWriteFailedException.h" #import "ProgressBar.h" @@ -932,12 +932,12 @@ if (_currentFileName == nil) _currentFileName = [[[URL path] lastPathComponent] copy]; if (_continue) { @try { - of_offset_t size = [[OFFileManager defaultManager] - sizeOfFileAtPath: _currentFileName]; + uintmax_t size = [[[OFFileManager defaultManager] + attributesOfItemAtPath: _currentFileName] fileSize]; OFString *range; if (size > INTMAX_MAX) @throw [OFOutOfRangeException exception]; @@ -945,11 +945,11 @@ range = [OFString stringWithFormat: @"bytes=%jd-", _resumedFrom]; [clientHeaders setObject: range forKey: @"Range"]; - } @catch (OFStatItemFailedException *e) { + } @catch (OFRetrieveItemAttributesFailedException *e) { } } request = [OFHTTPRequest requestWithURL: URL]; [request setHeaders: clientHeaders];