Synchronizes the specified folder, its files and, optionally, its subfolders.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
int Synchronize(
	int portalId,
	string relativePath,
	bool isRecursive,
	bool syncFiles
)
Visual Basic
Function Synchronize ( 
	portalId As Integer,
	relativePath As String,
	isRecursive As Boolean,
	syncFiles As Boolean
) As Integer

Parameters

portalId
Type: System..::..Int32
The portal identifier.
relativePath
Type: System..::..String
The relative path of the folder.
isRecursive
Type: System..::..Boolean
Indicates if the synchronization has to be recursive.
syncFiles
Type: System..::..Boolean
Indicates if files need to be synchronized.

Return Value

The number of folder collisions.

See Also