fileDeleteFuture method

Future<MessageOrError> fileDeleteFuture(
  1. String innerPath
)

Return: "ok" on success, the error message otherwise.

Implementation

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