Making list method work with folders.
Making list method support folders.