public DigestSourceFile ( string filepath ) : |
||
filepath | string | |
리턴 |
public DataHash DigestSourceFile(string filepath)
{
return DigestFile(filepath, true);
}
public void HashIncludeFiles(int threads) { using (var ic = FileCacheStore.Load("testincs")) { var ht = new HashUtil(ic); ht.HashingThreadCount = threads; var files = Directory.GetFiles(IncludeDir); foreach (var f in files) { var hr = ht.DigestSourceFile(f); Assert.IsNotNull(hr.Hash); } } }