Synchronize by Selected Folder Name not the Folder Contents

This button solves the problem of syncing only one subfolder out of ten in a folder; no need to enter the folders and sync all the subfolders.

Select a single folder in the source. Then select an identical folder with a different path in the destination. Click the button again to return to the original folders.

Sync Selected Folders Toggle.dcf (1.1 KB)

Add the button to a toolbar and try it out.

The code:

@nodeselect
@if:$glob:sync
@set glob:sync
Set UTILITY=Off
Set FOCUS=Source
Go UP BACK
Set FOCUS=Dest
Go UP BACK
@if:else
Set FOCUS=Right
Go {file} OPENINRIGHT
Set FOCUS=Left
Go {file} OPENINLEFT
Set UTILITY=Sync,Toggle
@set glob:sync=on

I think this will do the same thing a bit cleaner:

@nodeselect
@if:Set UTILITY=Sync
Set UTILITY=Off
@if:else
Set SOURCE=Left
Find SYNC NOAUTORUN FROM {filepath$} TO {filepathdest$}

That will open the Sync panel for the selected folder on each side, with the left always being the sync source. Other sync settings will be as they were last time it was used (but you can add arguments to specify them, or a saved preset, if needed).

When clicked again, it'll hide the sync panel.

1 Like