isFileEquals method
FutureOr<bool>
isFileEquals(
- Release release,
- ReleaseFile file,
- 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);
}