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