changed method

Future<List<String>> changed()

The tracked paths whose bytes differ now from sha256, in its order: changed, created or deleted. A path that is absent is null, the same as one that was absent when these files were captured. A path that exists but cannot be read throws FileSystemException; it is not treated as absent.

Implementation

Future<List<String>> changed() async => [
  for (final MapEntry(key: path, value: digest) in sha256.entries)
    if (await _digest(path) != digest) path,
];