'Declaration Public Overloads Shared Sub Untar( _ ByVal tarFileName As String, _ ByVal destinationFolder As String, _ ByVal replaceExistingFiles As Boolean, _ ByVal recursive As Boolean, _ ByVal preservePaths As Boolean, _ ByVal isTarCompressed As Boolean, _ ByVal ParamArray filesToUntar() As String _ )
'Usage Dim tarFileName As String Dim destinationFolder As String Dim replaceExistingFiles As Boolean Dim recursive As Boolean Dim preservePaths As Boolean Dim isTarCompressed As Boolean Dim filesToUntar() As String QuickTar.Untar(tarFileName, destinationFolder, replaceExistingFiles, recursive, preservePaths, isTarCompressed, filesToUntar)
public static void Untar( string tarFileName, string destinationFolder, bool replaceExistingFiles, bool recursive, bool preservePaths, bool isTarCompressed, params string[] filesToUntar )
Parameters
- tarFileName
- The full path of the Tar archive. Cannot be empty.
- destinationFolder
- The path to the destination folder in which to untar all items. Cannot be empty.
- replaceExistingFiles
- Boolean value indicating whether existing items in the destination should be replaced.
- recursive
- Boolean value indicating whether files contained within sub-folders of filesToTar items should be extracted.
- preservePaths
- Boolean value indicating whether the directory structure should be preserved in the destination folder.
- isTarCompressed
- Boolean value indicating if the tar file was compressed using GZip. Note: The GZip file retrieved must have the following format: tarFileName.gz. An exception is thrown if the Tar archive is not compressed.
- filesToUntar
- The list of file paths to get from the Tar archive. Cannot be null.