oups ..... sorry Jonathan, I made a mistake in my last comments; the path from the initial directory really shows up in the structure ouput by dir2; I do not know how I got to be convinced it was not the case.......Getting the fullpath would still be nice to have. Sorry again. Up-rating to 4.2 !!!
In the current version ( feb 21st, 2014) I would rate it as 3.7;
1) I think that a default install for dir2_mex for a pc is a little too much if one just wants to try dir2 to see how it works; installing dir2_mex could be handled with a param/val list; I personally commented the ispc block so I would not have to worry about mex-ing.
2) dir2 output the files name without giving their path and therefore is of limited use in a multilevel directory situation; it can be hard to get to the file if several levels are involved
3) I tried one way to get a recursive dir on Windows using system() call to DOS dir, i.e. system( 'dir /s /b'); this however does not work with filename that contains certain characters (as in my case accented characters); dir2 works fine for such case; furthermore the dir2.m is better since it is less machine-dependent and should work equally well on Unix-like platform