tumblr tracker

Sync

Library Reference ›› Folder ››
Parent Previous Next

Folder.Sync


Namespace: Folder


Synchronizes between two folders. The synchronization is one way, from the source to the destination path.


retval = Folder.Sync(SourceFolderPath, DestFolderPath, [CancelOnFirstError])


Parameters:

- SourceFolderPath; string constant or variable containing the source folder path to sync from

- DestFolderPath; string constant or variable containing the destination folder path to sync to

- [CancelOnFirstError]; optional (default false); if false, it will ignore any errors and continue with the next file or folder; boolean value


Returns:

true if operation succeeded or false otherwise; boolean value.


Example


If (Folder.Sync("C:\TEMP\FolderSrc", "C:\TEMP\FolderDest", true))
{
   MessageBox.ShowInfo("Folder synced.");
}