If you come from the PHP world you might be interested to know that you can also write this as:

    result.totalDirs = 0;

:smile: