Skip to content

Commit fbc9848

Browse files
committed
bug fix
1 parent 8924d2b commit fbc9848

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

FastFileCopy/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static async Task Main(string[] args)
9191
RecurseSubdirectories = Convert.ToBoolean(flag7),
9292
IgnoreInaccessible = true,
9393
ReturnSpecialDirectories = false,
94+
AttributesToSkip = default,
9495
MatchCasing = MatchCasing.CaseInsensitive
9596
};
9697

@@ -184,7 +185,7 @@ private static async Task Execute(string Source, string SourcePath, string Desti
184185
if (read == 0)
185186
break;
186187

187-
var sourceHash = is64bit ? xxHash64.Hash(checkArray) : xxHash32.Hash(checkArray);
188+
var sourceHash = is64bit ? xxHash64.Hash(dataArray) : xxHash32.Hash(dataArray);
188189

189190
bytesRead += read;
190191

@@ -197,12 +198,12 @@ private static async Task Execute(string Source, string SourcePath, string Desti
197198

198199
var destHash = is64bit ? xxHash64.Hash(checkArray) : xxHash32.Hash(checkArray);
199200

200-
201+
////code to test chunk retries
201202
//var rnd = new Random();
202203
//var p = rnd.Next(1, 10000);
203204

204205
//if (p < 1000)
205-
// destHash += 1; //code to test chunk retries
206+
// destHash += 1;
206207

207208

208209
if (sourceHash == destHash)

0 commit comments

Comments
 (0)