private bool ExistsWithMatchingHash(IArchiveFileEntry entry, string path)
        {
            if (CoreData?.GetFileDataEntryByHash(entry.Hash) != null)
            {
                return(true);
            }
            if (!File.Exists(path))
            {
                return(false);
            }

            using (var fileStream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
            {
                using (var sha1 = SHA1.Create())
                {
                    var hash = sha1.ComputeHash(fileStream);
                    if (hash.SequenceEqual(entry.Hash))
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }