human
list all files of a directory
assistant
Here is some code to list all files of a directory `mypath`

onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]

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