TarArchive.SetAsciiTranslation Method

SharpZip Compression Library

SharpZip Compression Library

TarArchive.SetAsciiTranslation Method 

Set the ascii file translation flag. If ascii file translation is true, then the file is checked to see if it a binary file or not. If the flag is true and the test indicates it is ascii text file, it will be translated. The translation converts the local operating system's concept of line ends into the UNIX line end, '\n', which is the defacto standard for a TAR archive. This makes text files compatible with UNIX.

public void SetAsciiTranslation(
   bool asciiTranslate
);

Parameters

asciiTranslate
If true, translate ascii text files.

See Also

TarArchive Class | ICSharpCode.SharpZipLib.Tar Namespace