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