Click or drag to resize

fileOpsBasezipDirectory Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Zips the directory.

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static Object zipDirectory(
	this DirectoryInfo from,
	DirectoryInfo to,
	string zipFilename,
	bool zipAsSubFolder = false,
	string selectionPattern = "*.*"
)
Request Example View Source

Parameters

from
Type: System.IODirectoryInfo
From.
to
Type: System.IODirectoryInfo
To.
zipFilename
Type: SystemString
The zip filename.
zipAsSubFolder (Optional)
Type: SystemBoolean
if set to true [zip as sub folder].
selectionPattern (Optional)
Type: SystemString
The selection pattern.

Return Value

Type: Object

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DirectoryInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also