Note: This API documentation is for FAKE version 4. The migration API documentation can be found
here. The API documentation for the new fake 5 modules can be found
here
ZipHelper
This module contains helper function to create and extract zip archives.
Functions and values
Function or value | Description | ||
CreateZip(...)
Signature: workingDir:string -> fileName:string -> comment:string -> level:int -> flatten:bool -> files:seq<string> -> unit
|
Creates a zip file with the given files Parameters
|
||
CreateZipOfIncludes(...)
Signature: fileName:string -> comment:string -> level:int -> files:seq<string * FileIncludes> -> unit
|
Creates a zip file with the given files. Parameters
|
||
DefaultZipLevel
Signature: int
|
The default zip level |
||
Unzip target fileName
Signature: target:string -> fileName:string -> unit
|
Unzips a file with the given file name. Parameters
|
||
UnzipFirstMatchingFileInMemory(...)
Signature: predicate:(ZipEntry -> bool) -> zipFileName:string -> string
|
Unzips a single file from the archive with the given file name. Parameters
|
||
UnzipSingleFileInMemory(...)
Signature: fileToUnzip:string -> zipFileName:string -> string
|
Unzips a single file from the archive with the given file name. Parameters
|
||
Zip workingDir fileName files
Signature: workingDir:string -> fileName:string -> files:seq<string> -> unit
|
Creates a zip file with the given files. Parameters
|
||
ZipFile fileName targetFileName
Signature: fileName:string -> targetFileName:string -> unit
|
Creates a zip file with the given file. Parameters
|
||
ZipOfIncludes fileName files
Signature: fileName:string -> files:seq<string * FileIncludes> -> unit
|
Creates a zip file with the given files. Parameters
SampleThe following sample creates a zip file containing the files from the two target folders and FileIncludes.
val sprintf : format:Printf.StringFormat<'T> -> 'T
|