Walks directories and spews out a directory tree object, with optional transformations