getDirectories method
Implementation
Future<List<StorageDirectory>> getDirectories() async {
List<StorageDirectory> directories = [];
ListResultForAll result = await listAll();
var dirs = result.prefixes;
for (var dir in dirs) {
directories.add(StorageDirectory(
cloudPath: "$fullPath/${dir.name}",
dirName: dir.name,
reference: dir));
}
return directories;
}