generateDigestForMultipleFile static method
Calculates the MD5 digest of multiple files filePaths
.
Implementation
static String generateDigestForMultipleFile(List<String> filePaths) {
if (filePaths.isEmpty) {
throw Exception(
'filePaths list must not be empty when invoked to generate digest',
);
}
final sb = StringBuffer();
for (final file in filePaths) {
sb.write(generateDigestForSingleFile(file));
sb.write('-');
}
return generateDigestForRawString(sb.toString());
}