<human>:  How can I list the contents of a directory in Python?
<bot>: Here is some code to list the contents of a directory '/home/username/www/'

os.listdir('/home/username/www/')

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