diff --git a/uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs b/uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs index 27374e15..dbf969ef 100644 --- a/uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs +++ b/uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs @@ -605,6 +605,10 @@ virtual public async Task> ImportSecondPassAsync(XElement n protected virtual IEnumerable CleanFolder(string cleanFile, bool reportOnly, bool flat) => CleanFolderAsync(cleanFile, reportOnly, flat).Result; + /// + /// given a folder we calculate what items we can remove, because they are + /// not in one the files in the folder. + /// protected virtual async Task> CleanFolderAsync(string cleanFile, bool reportOnly, bool flat) { var folder = Path.GetDirectoryName(cleanFile); @@ -750,7 +754,7 @@ protected virtual IEnumerable DeleteMissingItems(int parentId, IEnu /// /// Remove an items that are not listed in the GUIDs to keep. /// - /// parent item that all keys will be under + /// parent item that all keys will be under /// list of GUIDs of items we don't want to delete /// will just report what would happen (doesn't do the delete) /// list of delete actions @@ -1555,7 +1559,6 @@ public virtual async Task HandleAsync(DeletedNotification notification, /// /// Handle the Umbraco Saved notification for items. /// - /// public virtual async Task HandleAsync(SavedNotification notification, CancellationToken cancellationToken) { if (!ShouldProcessEvent()) return; @@ -1586,7 +1589,6 @@ public virtual async Task HandleAsync(SavedNotification notification, C /// /// Handle the Umbraco moved notification for items. /// - /// public virtual async Task HandleAsync(MovedNotification notification, CancellationToken cancellationToken) { try