fileListFuture method

Future<MessageOrError> fileListFuture(
  1. String innerPath
)

Return: List of files in the directory (recursive).

Implementation

Future<MessageOrError> fileListFuture(String innerPath) async {
  var resultStr = await ZeroNet.instance.cmdFuture(
    ZeroNetCmd.fileList,
    params: {
      'inner_path': innerPath,
    },
  );
  return resultStr.toMsgOrErr;
}