private CreateFileEntry ( string file, bool shouldHash ) : |
||
file | string | |
shouldHash | bool | |
Результат |
FileEntry CreateFileEntry(string file, bool shouldHash)
{
var fi = new FileInfo(file);
var fe = new FileEntry();
fe.Length = fi.Length;
fe.Timestamp = fi.LastWriteTimeUtc;
if (shouldHash)
fe.Hash = HashFile(fi);
return fe;
}