MediaLibraryHelper CopyRecursive Method (Int32, Int32, DirectoryInfo, String, String, Int32, String, Boolean, Int32, Boolean, CloneSettings, CloneResult)Kentico 8.0 API Reference
Recursive copy media library directory.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

sourceLibraryID
Type: OnlineSystem Int32
Source library ID
destinationLibraryID
Type: OnlineSystem Int32
Destination library ID
dir
Type: CMS.IO DirectoryInfo
Directory Info
destinationDirectory
Type: OnlineSystem String
Destination path
sourcePath
Type: OnlineSystem String
Source DB path
libraryPathIndex
Type: OnlineSystem Int32
Library path index
startingPoint
Type: OnlineSystem String
Starting point
copyDB
Type: OnlineSystem Boolean
Indicate if database entries should copy
userId
Type: OnlineSystem Int32
ID of the user performing action
overwrite (Optional)
Type: OnlineSystem Boolean
Indicates if the destination folder and files can be overwritten
cloneSettings (Optional)
Type: CMS.DataEngine CloneSettings
MediaLibrary clone settings. Only some parameters are used. If null, cloning is not used and FileMediaInfo is inserted as a directly.
cloneResult (Optional)
Type: CMS.DataEngine CloneResult
Results of cloning will be stored to this instance
See Also