void list(Map m)

Source

void list(Map m) {
  Path path = Path.getValidNodePath(m['path']);
  if (path != null && path.isAbsolute) {
    int rid = m['rid'];

    _getNode(path, (LocalNode node) {
      addResponse(new ListResponse(this, rid, node), path);
    }, (e, stack) {
      var error = new DSError(
        "nodeError",
        msg: e.toString(),
        detail: stack.toString()
      );
      closeResponse(m['rid'], error: error);
    });
  } else {
    closeResponse(m['rid'], error: DSError.INVALID_PATH);
  }
}