code: @VisibleForTesting
    boolean couldUseFlatGlob(Path fixedPath) {
      // Only works for filesystems where the base Hadoop Path scheme matches the underlying URI
      // scheme for GCS.
      if (!getUri().getScheme().equals(GoogleCloudStorageFileSystem.SCHEME)) {
        logger.atFine().log(
            "Flat glob is on, but doesn't work for scheme '%s'; using default behavior.",
            getUri().getScheme());
        return false;
      }
  
      // The full pattern should have a wildcard, otherwise there's no point doing the flat glob.
      GlobPattern fullPattern = new GlobPattern(fixedPath.toString());
      if (!fullPattern.hasWildcard()) {
        logger.atFine().log(
            "Flat glob is on, but Path '%s' has no wildcard; using default behavior.", fixedPath);
        return false;
      }
  
      // To use a flat glob, there must be an authority defined.
      if (Strings.isNullOrEmpty(fixedPath.toUri().getAuthority())) {
        logger.atInfo().log(
            "Flat glob is on, but Path '%s' has a empty authority, using default behavior.",
            fixedPath);
        return false;
      }
  
      // And the authority must not contain a wildcard.
      GlobPattern authorityPattern = new GlobPattern(fixedPath.toUri().getAuthority());
      if (authorityPattern.hasWildcard()) {
        logger.atInfo().log(
            "Flat glob is on, but Path '%s' has a wildcard authority, using default behavior.",
            fixedPath);
        return false;
      }
  
      return true;
    }
docs: Determines based on suitability of {@code fixedPath} whether to use flat globbing logic where
  we use a single large listing during globStatus to then perform the core globbing logic
  in-memory.