메소드 | 설명 | |
---|---|---|
CreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName ) : void |
Creates a Zip archive at the path If an entry with the specified name already exists in the archive, a second entry will be created that has an identical name. Since no
|
|
CreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory ) : void |
Creates a Zip archive at the path If an entry with the specified name already exists in the archive, a second entry will be created that has an identical name. Since no
|
|
CreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory, |
Creates a Zip archive at the path If an entry with the specified name already exists in the archive, a second entry will be created that has an identical name. Since no
|
|
ExtractToDirectory ( string sourceArchiveFileName, string destinationDirectoryName ) : void |
Extracts all of the files in the specified archive to a directory on the file system. The specified directory must not exist. This method will create all subdirectories and the specified directory. If there is an error while extracting the archive, the archive will remain partially extracted. Each entry will be extracted such that the extracted file has the same relative path to the destinationDirectoryName as the entry has to the archive. The path is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. If a file to be archived has an invalid last modified time, the first datetime representable in the Zip timestamp format (midnight on January 1, 1980) will be used.
|
|
ExtractToDirectory ( string sourceArchiveFileName, string destinationDirectoryName, |
Extracts all of the files in the specified archive to a directory on the file system. The specified directory must not exist. This method will create all subdirectories and the specified directory. If there is an error while extracting the archive, the archive will remain partially extracted. Each entry will be extracted such that the extracted file has the same relative path to the destinationDirectoryName as the entry has to the archive. The path is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. If a file to be archived has an invalid last modified time, the first datetime representable in the Zip timestamp format (midnight on January 1, 1980) will be used.
|
|
OpenRead ( string archiveFileName ) : |
Opens a
|
메소드 | 설명 | |
---|---|---|
DoCreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory, |
||
EnsureCapacity ( char &buffer, int min ) : void | ||
EntryFromPath ( string entry, int offset, int length, char &buffer, bool appendPathSeparator = false ) : string | ||
IsDirEmpty ( DirectoryInfo possiblyEmptyDir ) : bool | ||
Open ( string archiveFileName, ZipArchiveMode mode ) : |
||
Open ( string archiveFileName, ZipArchiveMode mode, |
public static CreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName ) : void | ||
sourceDirectoryName | string | The path to the directory on the file system to be archived. |
destinationArchiveFileName | string | The name of the archive to be created. |
리턴 | void |
public static CreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory ) : void | ||
sourceDirectoryName | string | The path to the directory on the file system to be archived. |
destinationArchiveFileName | string | The name of the archive to be created. |
compressionLevel | CompressionLevel | The level of the compression (speed/memory vs. compressed size trade-off). |
includeBaseDirectory | bool | true to indicate that a directory named sourceDirectoryName should
/// be included at the root of the archive. false to indicate that the files and directories in sourceDirectoryName
/// should be included directly in the archive. |
리턴 | void |
public static CreateFromDirectory ( string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory, |
||
sourceDirectoryName | string | The path to the directory on the file system to be archived. |
destinationArchiveFileName | string | The name of the archive to be created. |
compressionLevel | CompressionLevel | The level of the compression (speed/memory vs. compressed size trade-off). |
includeBaseDirectory | bool | true to indicate that a directory named sourceDirectoryName should
/// be included at the root of the archive. false to indicate that the files and directories in sourceDirectoryName
/// should be included directly in the archive. |
entryNameEncoding | The encoding to use when reading or writing entry names in this ZipArchive.
/// /// /// This value is used as follows while creating the archive:
|
|
리턴 | void |
public static ExtractToDirectory ( string sourceArchiveFileName, string destinationDirectoryName ) : void | ||
sourceArchiveFileName | string | The path to the archive on the file system that is to be extracted. |
destinationDirectoryName | string | The path to the directory on the file system. The directory specified must not exist, but the directory that it is contained in must exist. |
리턴 | void |
public static ExtractToDirectory ( string sourceArchiveFileName, string destinationDirectoryName, |
||
sourceArchiveFileName | string | The path to the archive on the file system that is to be extracted. |
destinationDirectoryName | string | The path to the directory on the file system. The directory specified must not exist, but the directory that it is contained in must exist. |
entryNameEncoding | The encoding to use when reading or writing entry names in this ZipArchive.
/// /// /// This value is used as follows:
|
|
리턴 | void |
public static OpenRead ( string archiveFileName ) : |
||
archiveFileName | string | A string specifying the path on the filesystem to open the archive on. The path is permitted /// to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. |
리턴 |