hasBackup method

bool hasBackup(
  1. File file
)

Whether a backup exists for file.

Implementation

bool hasBackup(File file) {
  final relativePath = p.relative(file.path, from: projectDir);
  return File(p.join(_backupRoot.path, relativePath)).existsSync();
}