code: def _flag_transform(flags):
      
  
      # Here we force `PATHNAME`.
      flags = (flags & FLAG_MASK) | _wcparse.PATHNAME
      if flags & _wcparse.REALPATH and util.platform() == "windows":
          flags |= _wcparse._FORCEWIN
          if flags & _wcparse.FORCECASE:
              flags ^= _wcparse.FORCECASE
      return flags
docs: Transform flags to glob defaults.