createFolderKey static method

String createFolderKey(
  1. String folderPath
)

Generate a unique key for grouping files by folder path

Implementation

static String createFolderKey(String folderPath) {
  final bytes = utf8.encode(folderPath);
  final digest = sha256.convert(bytes);
  return digest.toString().substring(0, 16); // 16 chars for better uniqueness
}