backedUpFiles method

List<String> backedUpFiles()

Project-relative paths of every file currently backed up.

Implementation

List<String> backedUpFiles() {
  if (!_backupRoot.existsSync()) return const [];
  return _backupRoot
      .listSync(recursive: true)
      .whereType<File>()
      .map((f) => p.relative(f.path, from: _backupRoot.path))
      .toList()
    ..sort();
}