Table of Contents

Class IWritableArchiveExtensions

Namespace
SharpCompress.Archives
Assembly
SharpCompress.dll
public static class IWritableArchiveExtensions
Inheritance
IWritableArchiveExtensions
Inherited Members

Methods

AddAllFromDirectory(IWritableArchive, string, string, SearchOption)

public static void AddAllFromDirectory(this IWritableArchive writableArchive, string filePath, string searchPattern = "*.*", SearchOption searchOption = SearchOption.AllDirectories)

Parameters

writableArchive IWritableArchive
filePath string
searchPattern string
searchOption SearchOption

AddEntry(IWritableArchive, string, FileInfo)

public static IArchiveEntry AddEntry(this IWritableArchive writableArchive, string key, FileInfo fileInfo)

Parameters

writableArchive IWritableArchive
key string
fileInfo FileInfo

Returns

IArchiveEntry

AddEntry(IWritableArchive, string, string)

public static void AddEntry(this IWritableArchive writableArchive, string entryPath, string filePath)

Parameters

writableArchive IWritableArchive
entryPath string
filePath string

SaveTo(IWritableArchive, FileInfo, WriterOptions)

public static void SaveTo(this IWritableArchive writableArchive, FileInfo fileInfo, WriterOptions options)

Parameters

writableArchive IWritableArchive
fileInfo FileInfo
options WriterOptions

SaveTo(IWritableArchive, string, WriterOptions)

public static void SaveTo(this IWritableArchive writableArchive, string filePath, WriterOptions options)

Parameters

writableArchive IWritableArchive
filePath string
options WriterOptions