Ampere.BuildHistory.CheckChanged C# (CSharp) Method

CheckChanged() private method

private CheckChanged ( ChangeDetection detection, FileInfo file, FileEntry entry ) : bool
detection ChangeDetection
file System.IO.FileInfo
entry FileEntry
return bool
        bool CheckChanged(ChangeDetection detection, FileInfo file, FileEntry entry)
        {
            if (!file.Exists)
                return true;

            if ((detection & ChangeDetection.Length) != 0 && file.Length != entry.Length)
                return true;

            if ((detection & ChangeDetection.Timestamp) != 0 && file.LastWriteTimeUtc != entry.Timestamp)
                return true;

            if ((detection & ChangeDetection.Hash) != 0 && HashFile(file) != entry.Hash)
                return true;

            return false;
        }