more tweaks to 20 · d4eb067eb0 - SVN.BY: Go Git Service
Browse Source

more tweaks to 20

Related Work Items: #20
Tiernan OToole 10 years ago
parent
commit
d4eb067eb0
1 changed files with 12 additions and 2 deletions
  1. 12 2
      B2Uploader/Program.cs

+ 12 - 2
B2Uploader/Program.cs

57
                     {
57
                     {
58
                         if (x.fileName == fileName)
58
                         if (x.fileName == fileName)
59
                         {
59
                         {
60
-                            found = true;
61
-                            break;
60
+                            //check the file size
61
+                            System.IO.FileInfo fi = new System.IO.FileInfo(s);
62
+                            if (fi.Length == x.size)
63
+                            {
64
+                                found = true;
65
+                                break;
66
+                            }
67
+                            else
68
+                            {
69
+                                //delete old file? could just be an older version... going to upload again...
70
+                                break;
71
+                            }
62
                         }
72
                         }
63
                     }
73
                     }
64
                     if (found)
74
                     if (found)