[download] rename list_folders to list_dir

Add documentation and tests
4 jobs for list-folders in 4 minutes and 3 seconds (queued for 9 seconds)
Status Name Job ID Coverage
  Build
passed build_linux_37 #224905
docker

00:02:27

75.0%
passed build_linux_38 #224906
docker

00:02:28

75.0%
passed build_macos_intel_37 #224903
macos intel

00:04:03

76.0%
passed build_macos_intel_38 #224904
macos intel

00:03:57

76.0%