code: @Override
    public URI getGcsPath(Path hadoopPath) {
      logger.atFine().log("GHFS.getGcsPath: %s", hadoopPath);
  
      // Convert to fully qualified absolute path; the Path object will callback to get our current
      // workingDirectory as part of fully resolving the path.
      Path resolvedPath = makeQualified(hadoopPath);
  
      String objectName = resolvedPath.toUri().getPath();
      if (objectName != null && resolvedPath.isAbsolute()) {
        // Strip off leading '/' because GoogleCloudStorageFileSystem.getPath appends it explicitly
        // between bucket and objectName.
        objectName = objectName.substring(1);
      }
  
      // Construct GCS path uri.
      URI gcsPath = pathCodec.getPath(rootBucket, objectName, true);
      logger.atFine().log("GHFS.getGcsPath: %s -> %s", hadoopPath, gcsPath);
      return gcsPath;
    }
docs: Translates a "gs:/" style hadoopPath (or relative path which is not fully-qualified) into
  the appropriate GCS path which is compatible with the underlying GcsFs or gsutil.