getFolderContent static method

Future<List<String>> getFolderContent(
  1. String path,
  2. KuebikoHttpClient httpClient
)

Implementation

static Future<List<String>> getFolderContent(String path, KuebikoHttpClient httpClient) async {
  Uri uri = httpClient.config.generateApiUri(
      '/folder',
      queryParameters: {
        'path': path
      }
  );
  http.Response res = await httpClient.get(uri);
  return jsonDecode(res.body)['child'].cast<String>();
}