Click or drag to resize
MediaLibraryHelperCopyRecursive Method (Int32, DirectoryInfo, String, String, Int32, String, Boolean, Int32)
Recursive copy media library directory.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
public static void CopyRecursive(
	int libraryID,
	DirectoryInfo dir,
	string destinationDirectory,
	string sourcePath,
	int libraryPathIndex,
	string startingPoint,
	bool copyDB,
	int userId
)

Parameters

libraryID
Type: SystemInt32
Library ID
dir
Type: CMS.IODirectoryInfo
Directory Info
destinationDirectory
Type: SystemString
Destination path
sourcePath
Type: SystemString
Source DB path
libraryPathIndex
Type: SystemInt32
Library path index
startingPoint
Type: SystemString
Starting point
copyDB
Type: SystemBoolean
Indicate if database entries should copy
userId
Type: SystemInt32
ID of the user performing action
See Also