Added function to use FIles.GetDirectory to parse files