os.listdir in python windows code example Example: python windows os.listdir path usage yourobject = os.listdir('C:\\Users\\test\\files')