|
|
@ -692,8 +692,8 @@ typedef void (^OrphanDataBlock)(OWSOrphanData *);
|
|
|
|
NSError *error;
|
|
|
|
NSError *error;
|
|
|
|
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:&error];
|
|
|
|
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:&error];
|
|
|
|
if (!attributes || error) {
|
|
|
|
if (!attributes || error) {
|
|
|
|
OWSLogDebug(@"Could not get attributes of file at: %@", filePath);
|
|
|
|
// This is fine; the file may have been deleted since we found it.
|
|
|
|
OWSFailDebug(@"Could not get attributes of file");
|
|
|
|
OWSLogWarn(@"Could not get attributes of file at: %@", filePath);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Don't delete files which were created in the last N minutes.
|
|
|
|
// Don't delete files which were created in the last N minutes.
|
|
|
|