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" ) ) ) ; }
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 .