Replaced Merkle hash with MD5 for change checking
[pithos-ms-client] / trunk / Pithos.Core / FileState.cs
index 833881c..3995cac 100644 (file)
@@ -435,7 +435,7 @@ namespace Pithos.Core
                             }, null);
         }
 
-        public static FileState CreateFor(FileSystemInfo info)
+        public static FileState CreateFor(FileSystemInfo info,IStatusNotification notification)
         {
             if(info==null)
                 throw new ArgumentNullException("info");
@@ -451,8 +451,8 @@ namespace Pithos.Core
                     Id = Guid.NewGuid()
                 };
 
-
-            var shortHash = ((FileInfo)info).ComputeShortHash();
+            
+            var shortHash = ((FileInfo)info).ComputeShortHash(notification);
             var fileState = new FileState
                                 {
                                     FilePath = info.FullName,