Returns the paths of all subdirectories of the root path.
Function documentation states that FileExchange submission dirdir is required for use. A broken link is supplied.
As an alternative, please consider including dirdir as a subfunction within subdir, with citation. This would eliminate the need to update the URL, and allow your function to be self-sufficient.
Plese, correct the '\' character in line 36 and repalce it with filesep for platform independance. '\' is the file separator only for Wondows.