isFileEquals method

  1. @override
FutureOr<bool> isFileEquals(
  1. Release release,
  2. ReleaseFile file,
  3. ReleaseManifestFile manifestFile
)
override

Returns true if the stored file is equals to manifestFile.

Implementation

@override
FutureOr<bool> isFileEquals(
    Release release, ReleaseFile file, ReleaseManifestFile manifestFile) {
  var dir = releaseDirectory(release);
  if (!dir.existsSync()) return false;

  var localFile = file.toFile(parentDirectory: dir);
  if (!localFile.existsSync()) return false;

  return manifestFile.checkFile(localFile);
}