Skip to content

IOFile.GetCompressedFilename Method ​

Definition ​

Gets the filename to use for a file written with the specified compression format, for example "name.wav" compressed with GZip becomes "name.wav.gz".

c#
public static string GetCompressedFilename(string filename, CompressionFormat compressionFormat);

View source

Parameters ​

NameTypeDescription
filenameStringThe filename of the uncompressed file, with extension.
compressionFormatCompressionFormatThe compression format.

Returns ​

String

The filename to use for the compressed file.