dirListFuture method

Future<MessageOrError> dirListFuture(
  1. String inner_path, {
  2. bool stats = false,
})

Return: List of file and directory names

Implementation

Future<MessageOrError> dirListFuture(
  String inner_path, {
  bool stats = false,
}) async {
  var resultsStr = await ZeroNet.instance.cmdFuture(
    ZeroNetCmd.dirList,
    params: {
      'inner_path': inner_path,
      'stats': stats,
    },
  );
  return resultsStr.toMsgOrErr;
}