API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Meta.Microsoft.Help.Id
M:Tekla.Structures.Model.Internal.FarmiHelper.CopyDirectory(System.String,System.String,System.Boolean,System.Boolean,System.String)

FarmiHelperCopyDirectory Method

[This is preliminary documentation and is subject to change.]

Copy directory recursively.

Namespace:  Tekla.Structures.Model.Internal
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
public static void CopyDirectory(
	string path,
	string targetPath,
	bool throwExceptions = false,
	bool clearReadOnlyFlag = false,
	string excludeRegex = null
)

Parameters

path
Type: SystemString
Directory path.
targetPath
Type: SystemString
Target directory path.
throwExceptions (Optional)
Type: SystemBoolean
If true exceptions are thrown and operation discontinued at exception. If false exceptions are not thrown and operation continues after exception.
clearReadOnlyFlag (Optional)
Type: SystemBoolean
if set to true [remove read only flag of files].
excludeRegex (Optional)
Type: SystemString
The exclude regex.
See Also