<human>:  list all files of a directory
<bot>: Here is some code to list all ".txt" files of a directory "/home/adam/"

print(glob.glob('/home/adam/*.txt'))

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