code: public static boolean supportsRename(URI fsUri, Configuration conf) {
      String fsUriScheme = fsUri.getScheme();
  
      // Only S3 is known to not support renaming, but allow configuration override.
      // This logic is intended as a temporary placeholder solution and should
      // be revisited once HADOOP-9565 has been completed.
      return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP,
          !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a")));
    }
docs: Determine whether a FileSystem that supports efficient file renaming is being used. Two known
  FileSystem implementations that currently lack this feature are S3N and S3A.
  
  @param fsUri the FileSystem URI
  @param conf the FileSystem Configuration
  @return {@code true} if the FileSystem URI or {@link FileSystemProperties#SUPPORTS_RENAME_PROP
  configuration override} indicates that the FileSystem implementation supports efficient
  rename operations, {@code false} otherwise.