How can i get a list of a file with a file type in one directory. i would like a way that is done all through code