code: def normalize_directory(path):
      
      if path is None:
          return None
      if path.endswith(os.path.sep):
          return path
      else:
          return path + os.path.sep
docs: Append "/" to `path` if needed.