<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def GenerateNewFilePath(self, fileDir = None):
 """ Create new file path. If a fileDir is provided it will be used otherwise the original file path is used. Updates file info object with new path. Parameters fileDir : string [optional : default = None] Optional file directory """

    newFileName = self.GenerateNewFileName()
    if newFileName is not None:
      if fileDir is None:
        fileDir = os.path.dirname(self.fileInfo.origPath)
      self.fileInfo.newPath = os.path.join(fileDir, newFileName)