deleteEmptyDirs method
Implementation
Future<void> deleteEmptyDirs(String type) async {
var dirs = await dirContents(Directory(PATH_ACTIVITY + type));
dirs = dirs.reversed.toList();
for (var dir in dirs) {
if (dir is Directory) {
if (dir.listSync().toList().isEmpty) {
dir.deleteSync();
}
}
}
}