<human>:  How can I list the contents of a directory in Python?
<bot>: Here is some code to list all the contents of the directory 'path'.

os.listdir('path')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.