Click or drag to resize

fileOpsBasecopyDirectory Method

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

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

Parameters

from
Type: System.IODirectoryInfo
From.
to
Type: System.IODirectoryInfo
To.
selectionPattern (Optional)
Type: SystemString
The selection pattern.
copyAsSubfolder (Optional)
Type: SystemBoolean
if set to true [copy as subfolder].
copySubFolders (Optional)
Type: SystemBoolean
if set to true [copy sub folders].

Return Value

Type: DirectoryInfo

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