code: def create_folder_if_not_exists(folder_path):
      
      folder_path = tilde_expansion(folder_path)
      folder_path = "".join([folder_path, '/']) if not folder_path[-1] == '/' else folder_path
      direc = os.path.dirname(folder_path)
      if not folder_exists(direc):
          os.makedirs(direc)
docs: Creates a folder if it does not exists.