updated the renameFiles method to take a Path argument