code: def __generate_file(self, file_path):
          
          file_path = os.path.expanduser(file_path)
          if not os.path.exists(os.path.dirname(file_path)):
              self.logger.debug("Directories missing! Creating directories for %s..." % file_path)
              os.makedirs(os.path.dirname(file_path))
          if not os.path.exists(file_path):
              open(file_path, "w+").close()
          return file_path
docs: Generate the file at the file_path desired. Creates any needed
          directories on the way. returns the absolute path of the file.