Use file size and modification date to omit hash computation for unmodified files...
[pithos-macos] / pithos-macos / PithosLocalObjectState.h
index 42d5748..2ba45af 100644 (file)
@@ -42,8 +42,8 @@
     BOOL isDirectory;
     NSString *hash;
     NSString *tmpFilePath;
-    
-    BOOL exists;
+    NSDate *fileModificationDate;
+    NSNumber *fileSize;
 }
 
 - (id)initWithFile:(NSString *)aFilePath blockHash:(NSString *)blockHash blockSize:(NSUInteger)blockSize;
 @property (nonatomic, assign) BOOL isDirectory;
 @property (nonatomic, retain) NSString *hash;
 @property (nonatomic, retain) NSString *tmpFilePath;
+@property (nonatomic, retain) NSDate *fileModificationDate;
+@property (nonatomic, retain) NSNumber *fileSize;
 
-@property (nonatomic, readonly) BOOL exists;
+- (BOOL)exists;
+- (BOOL)isModified;
 
 @end