Checks the provided directory and creates a list of all files within that directory