Click or drag to resize

FileHelperCopyDirectory Method

Copy the files of a directory to a destination, optionally recursive, with a search pattern and a pattern of file name starts to skip. 'keepExistingFiles' is a list of file names (separated by ';', case insensitive, applied to sub-directories too) that are copied only when they do not exist yet in the destination, so a customized copy survives a re-publish (e.g. site-colors.css).

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.2.0.0+da7797057e6d5ef3b02633ee3e36991921c726cb
Syntax
C#
public static void CopyDirectory(
	string source,
	string destination,
	bool recursive,
	ReportExecutionLog log = null,
	string searchPattern = "*",
	string skipStartsPattern = "",
	string keepExistingFiles = ""
)

Parameters

source  String
 
destination  String
 
recursive  Boolean
 
log  ReportExecutionLog  (Optional)
 
searchPattern  String  (Optional)
 
skipStartsPattern  String  (Optional)
 
keepExistingFiles  String  (Optional)
 
See Also