added two snippets to list-only-directories