ls all directories in computer python code example Example: python ls directory import os os.listdir()