I see what you're doing here now. It would be just as easy to do this:

```js
this.adb.rimraf(ecOnDevicePath, function () { cb(); });
```