Use os.listdir to show directories only
553
How to list only top level directories in Python?
95326
List only regular files (but not directories) in current directory
106335
How do I list every file in a directory except those with specified extensions?
16349
Linux command line. Move all files and directories in directory, except some files and directories
67233
Remove all files/directories except for one file
47743
List all hidden folders/files in Windows (7)?
14560
How to search for only folders in Windows 7 instead of folders AND files
144371
How do I change directories from the command line?
60051
How can I show hidden files/folders in Finder
153515
Efficiently removing subdirectories in dirnames from os.walk
18852
Non-alphanumeric list order from os.listdir()
103329
List all files in all subfolders
32952
How can I make ls show information about the directory specified only, not info about its sub-files or folder contents?
77771
Show only hidden files (dot files) in ls alias
135475
File list command line (hidden and subfolders)
86058
How do I find (or exclude) all directories and sub-directories matching a certain pattern (in Linux)?
8402
How can I hide directories or files without changing their names?