listPath method
List contents of a folder by path.
Returns a map with 'folders' and 'files' keys.
Implementation
Future<Map<String, List<Map<String, dynamic>>>> listPath(
String remotePath) async {
final resolved = await resolvePath(remotePath);
if (resolved['type'] != 'folder') {
throw Exception("'$remotePath' is not a folder");
}
final folders = await listFoldersAsync(resolved['uuid'], detailed: true);
final files = await listFolderFiles(resolved['uuid'], detailed: true);
return {'folders': folders, 'files': files};
}