Zip
This module contains helper function to create and extract zip archives.
Functions and values
Function or value | Description | ||
Zip.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
|
||
Zip.createZipOfIncludes(...)
Signature: fileName:string -> comment:string -> level:int -> files:seq<string * IGlobbingPattern> -> unit
|
Creates a zip file with the given files. Parameters
|
||
Zip.createZipSpec(...)
Signature: fileName:string -> comment:string -> level:int -> items:seq<string * string> -> unit
|
Creates a zip file with the given files and specs. Parameters
|
||
Zip.DefaultZipLevel
Signature: int
|
The default zip level |
||
Zip.filesAsSpecs workingDir files
Signature: workingDir:string -> files:IGlobbingPattern -> seq<string * string>
|
This helper helps with creating complex zip file with multiple include patterns. This method will convert a given glob pattern with the given workingDir to a sequence of zip specifications. Parameters
SampleThe following sample creates a zip file containing the files from multiple patterns and moves them to different folders within the zip file.
module Seq
from Microsoft.FSharp.Collections val concat : sources:seq<#seq<'T>> -> seq<'T>
val sprintf : format:Printf.StringFormat<'T> -> 'T
|
||
Zip.filesAsSpecsFlatten(files)
Signature: files:IGlobbingPattern -> seq<string * string>
|
This helper helps with creating complex zip file with multiple include patterns. Parameters
SampleThe following sample creates a zip file containing the files from multiple patterns and moves them to different folders within the zip file.
module Seq
from Microsoft.FSharp.Collections val concat : sources:seq<#seq<'T>> -> seq<'T>
val sprintf : format:Printf.StringFormat<'T> -> 'T
|
||
Zip.moveToFolder path items
Signature: path:string -> items:seq<string * string> -> seq<string * string>
|
This helper helps with creating complex zip file with multiple include patterns. This function will move a given list of zip specifications to the given folder (while keeping original folder structure intact). Parameters
SampleThe following sample creates a zip file containing the files from multiple patterns and moves them to different folders within the zip file.
module Seq
from Microsoft.FSharp.Collections val concat : sources:seq<#seq<'T>> -> seq<'T>
val sprintf : format:Printf.StringFormat<'T> -> 'T
|
||
Zip.unzip target fileName
Signature: target:string -> fileName:string -> unit
|
Unzips a file with the given file name. Parameters
|
||
Zip.unzipFirstMatchingFileInMemory(...)
Signature: predicate:(ZipEntry -> bool) -> zipFileName:string -> string
|
Unzips a single file from the archive with the given file name. Parameters
|
||
Zip.unzipSingleFileInMemory(...)
Signature: fileToUnzip:string -> zipFileName:string -> string
|
Unzips a single file from the archive with the given file name. Parameters
|
||
Zip.zip workingDir fileName files
Signature: workingDir:string -> fileName:string -> files:seq<string> -> unit
|
Creates a zip file with the given files. Parameters
|
||
Zip.zipFile fileName targetFileName
Signature: fileName:string -> targetFileName:string -> unit
|
Creates a zip file with the given file. Parameters
|
||
Zip.zipOfIncludes fileName files
Signature: fileName:string -> files:seq<string * IGlobbingPattern> -> 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
|
||
Zip.zipSpec fileName items
Signature: fileName:string -> items:seq<string * string> -> unit
|
Creates a zip file with the given files and specs. Parameters
|