This will only show files one level deep. If you want it to display everything in the directory tree it will need to be a recursive function.