Deployment Tools Foundation
ArchiveFileStreamContext Constructor (archiveFiles, directory, files)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► ArchiveFileStreamContext ► ArchiveFileStreamContext(IList<(Of <(String>)>), String, IDictionary<(Of <(String, String>)>))
Creates a new ArchiveFileStreamContext with a list of archive files,
a default directory and a mapping from internal to external file paths.
Declaration Syntax
Parameters
- archiveFiles (IList<(Of <(String>)>))
- A list of paths to archive files that will be created or extracted.
- directory (String)
- The default root directory where files will be located, optional.
- files (IDictionary<(Of <(String, String>)>))
- A mapping from internal file paths to external file paths, optional.
Remarks
When creating chained archives, the archiveFiles list
should include at least enough archives to handle the entire set of
input files, based on the maximum archive size that is passed to the
CompressionEngine.Pack(IPackStreamContext, IEnumerable<(Of <(String>)>), Int64).
If the mapping is not null and a file is not included in the mapping, the file will be skipped.
If the external path in the mapping is a simple file name or relative file path, it will be concatenated onto the default directory, if one was specified.
For more about how the default directory and files mapping are used, see OpenFileReadStream(String, FileAttributes%, DateTime%) and OpenFileWriteStream(String, Int64, DateTime).