Creates a list(txt file) of the content in a directory