ExtractArchive
A Frends task for extracting zip archives.
Last updated
Was this helpful?
A Frends task for extracting zip archives.
Task version: 1.4.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
SourceFile : String
Full path to the source file.
Default: -
Example: c:\example\file.zip
🗝Password : String
Password for the ZIP file.
Default: -
Example: foobar123
DestinationDirectory : String
Destination directory.
Default: -
Example: C:\example
DestinationFileExistsAction : UnzipFileExistAction
Action to be taken when destination file/files exist.
Possible values:
Error: Action to be taken when destination file/files exist.
Overwrite: Action to be taken when destination file/files exist.
Rename: Action to be taken when destination file/files exist.
Default: 0
Example: Error
CreateDestinationDirectory : Boolean
Create destination directory if it does not exist.
Default: False
Example: false
DeleteZipFileAfterExtract : Boolean
If set to true, the source ZIP file will be deleted after successful extraction.
Default: False
Example: true
ExtractedFiles : List<String>
a List-object of extracted files.
Example: "ExtractedFiles": ["C:\temp\sample.txt", "C:\temp\sample2.txt"]
Changelog for Task Frends.Zip.ExtractArchive.
Fix separators when extracting between different operating systems (e.g. Windows and Linux) to ensure correct file paths.
Fix repository url in metadata
Drop DotNetZip in favour of ProDotNetZip because of security reasons
DotNetZip has a HIGH severity directory traversal vulnerability (CVE reported Nov 2024) affecting versions 1.10.1 through 1.16.0 with no patch available (package is deprecated)
The migration to ProDotNetZip 1.20.0 addresses this security concern
Fixed issue with rename option writing the extracted files to wrong directory.
DeleteZipFileAfterExtract option to enable the deletion of the source file.
Added documentation link to task description
Added package description
Maintenance
Initial implementation
Last updated
Was this helpful?
Was this helpful?

