MediaLibraryHelperCopyRecursive Method (Int32, Int32, DirectoryInfo, String, String, Int32, String, Boolean, Int32, Boolean, CloneSettings, CloneResult) |
Recursive copy media library directory.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 10.0.0
Syntax public static void CopyRecursive(
int sourceLibraryID,
int destinationLibraryID,
DirectoryInfo dir,
string destinationDirectory,
string sourcePath,
int libraryPathIndex,
string startingPoint,
bool copyDB,
int userId,
bool overwrite = false,
CloneSettings cloneSettings = null,
CloneResult cloneResult = null
)
Parameters
- sourceLibraryID
- Type: SystemInt32
Source library ID - destinationLibraryID
- Type: SystemInt32
Destination 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 - overwrite (Optional)
- Type: SystemBoolean
Indicates if the destination folder and files can be overwritten - cloneSettings (Optional)
- Type: CMS.DataEngineCloneSettings
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.DataEngineCloneResult
Results of cloning will be stored to this instance
See Also